[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Help: C code ...



Hi folks,

I hope some one has the answers to these, I've gone nuts trying to
find the solutions.

I'm building a Full Screen text editor for LINUX (More as a prog
exercise than anything else) and need to know the following :

[1] How do I colorise the screen, with DOS it was easy: all I had
to do was directly access video mem and set the bits.
>>     You can user color propery of Curses Library ! if TXT Mode else you
can use X-Motif.
[2] How do I move the cursor to any position on the screen?
>> Same answer nCurses
[3] How do I get input from the kbd; getchar() echoes the char
to the terminal (Something I don't want) and with extended keys, it looks
ugly (^[[[A for F1 for example).
>> getpasswdchar(), else curses supports non-echoeing input.
[4] Can I directly access vid mem. I tried using the same code
I had used for DOS (declare ptr to vid mem), but core dumped during
execution.
>> Probably no, in you case ! but you can still wrtite to tty/pts files
regards
-ajey


Ajey Gore
Technical Associate
National Centre for Software Technology
Bangalore

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.