Re: terminal

1999-04-03 Thread Glynn Clements


James wrote:

 how do i turn off the cursor

This is terminal-specific; some terminals may not allow the cursor to
be disabled. If it can be done, you need to send the string which
corresponds to the `civis' terminfo entry (`vi' termcap entry).

 and make my programs accept characters
 typed into a terminal without you having to press enter first?

Put the terminal into raw mode using tcsetattr().

-- 
Glynn Clements [EMAIL PROTECTED]



terminal

1999-04-01 Thread James

how do i turn off the cursor and make my programs accept characters
typed into a terminal without you having to press enter first?

I once knew, but i forgot :)

-- 
+++  If at first you don't succeed, you must be a programmer +++
[EMAIL PROTECTED] http://www.users.globalnet.co.uk/~kermit



Re: Need help writing a terminal emulator

1998-09-22 Thread Glynn Clements


Syslab Sales and Services Pvt Ltd. wrote:

  You just need to be able to receive and send data via a serial
 ..
  Whenever a key is pressed, you need to send the corresponding ASCII
  code via the serial connection.
  

   1. How do I describe this terminal in termcap/terminfo?

You only need a termcap/terminfo entry if you wish to use the terminal
for `full-screen' applications, e.g. vi, Emacs. With only 2 lines,
this isn't likely to be of much use.

  I have just read something about the curses library, however a
  book on the curses library is not available here in India.
  Where could I get more info/downloadable tutorial perhaps?
  I'm currently reading the man page.

The manual pages should provide adequate documentation. Try looking at
some existing entries (use `infocmp' to read terminfo files).

   2. How do I make sure that Linux initialises this terminal on
  startup?
   3. How do I make sure that the getty  login processes are carried
out on starting?

If the terminal will be permanently connected, add a getty process to
/etc/inittab, e.g.

s1:12345:respawn:/sbin/agetty 19200 ttyS0 dumb

`19200' is the line speed, `ttyS0' is the serial port, and `dumb' is
the terminal type (used to initialise $TERM).

-- 
Glynn Clements [EMAIL PROTECTED]



Re: Need help writing a terminal emulator

1998-09-21 Thread Syslab Sales and Services Pvt Ltd.



On Mon, 21 Sep 1998, Glynn Clements wrote:

 
 Syslab Sales and Services Pvt Ltd. wrote:
 
  Hello, friends! I am a student of electronics at the university of
  Pune, in India and as my final year project i'm developing an MIS system
  on Linux
  and remote data acquisition terminals. I'm using the MCS 51 architecture
  for the remote handheld terminals, the terminals will have a 16 character,
  2 line LCD display. I want to write a terminal emulator which would enable
  me to utilise the usual programs like login etc.. for the remote terminals



 You just need to be able to receive and send data via a serial
..
 Whenever a key is pressed, you need to send the corresponding ASCII
 code via the serial connection.
 

Dear Glynn,
Thanks. That does clear up things. However could you please tell
me about the following :
1. How do I describe this terminal in termcap/terminfo?
   I have just read something about the curses library, however a
   book on the curses library is not available here in India.
   Where could I get more info/downloadable tutorial perhaps?
   I'm currently reading the man page.
2. How do I make sure that Linux initialises this terminal on
   startup?
3. How do I make sure that the getty  login processes are carried
   out on starting?

Though these may be novice questions, thank you for answering them :-)

-Aalhad Saraf


Aalhad Saraf  [EMAIL PROTECTED]