LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2009, 09:24 AM   #1
zb10948
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
term support in ramdisk?


Hello,

i would like to do some nice ncurses layouts inside initrd regime. However, ncurses cannot initialize because there's no terminal support.

Basically, i just need to set x and y params of text output, background change and draw windows. Any nifty way i can do this without ncurses, while in initrd?
 
Old 05-06-2009, 10:44 PM   #2
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811

Rep: Reputation: 179Reputation: 179
I haven't tried this, but you may wish to do two things:
  1. Regardless of your desire for special effects, you may have to explicitly read and write to /dev/tty0. Or not. If your script is started so that it continues to run after initialization is complete (by starting it with "&" at the end of the invocation line), you may wish to pick /dev/tty1 or /dev/tty7 or elsewhat instead.
  2. When you've resolved that issue, you can proceed to the special effects step. Again, I haven't tried this, but in your init script, try setting environment variable TERM to linux or vt100. You should be able to use ncurses after that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: This week at LWN: Fedora and long term support LXer Syndicated Linux News 0 11-03-2008 04:20 AM
What Linux distributions have long-term support? jhsu Linux - Newbie 5 03-11-2007 03:52 PM
Does Term::ReadLine support shield input? edenCC Programming 0 03-06-2007 12:43 AM
LXer: Mark Shuttleworth on Ubuntu Long Term Support LXer Syndicated Linux News 0 06-03-2006 03:54 PM
Good distro for long term server support chaan Linux - Distributions 2 01-20-2004 10:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration