[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting a console.



On Thu, Jun 29, 2000 at 08:39:05PM +0300, Schlomo Schapiro wrote:

> PS: If you get to use it, try to run programs like mc. on my VT is just
> goes into a frency and starts to print only ?. Seems like there is a
> problem with the escape characters. The same happens under screen,
> btw. and I really would like to find a solution for this.

Two things you can do:

1. Make sure you've set the correct TERM variable (and have a reasonable
   version of termcap / terminfo)

2. To reset the terminal, as everybody knows <g>, you need to send an
   "ESC c" sequence. What I usually do is create a /usr/local/bin/^A
   (that's a ctrl-A, press ^V^A on the keyboard to get the shell not
   to interpret it), and put the following there:

== /usr/local/bin/^A ==
#!/bin/cat
^[c
== end /usr/local/bin/^A ==

   (That's an ESC char there. In vi, like in the shell, press ^V ESC
   and you'll get it.) Then chmod +x /usr/local/bin/^A .

   Next time your terminal screws up--even when it thinks ctrl is
   pressed down and you can't type anything very interesting--just
   press ctrl-A and ENTER, and voila, your terminal is reset. :-)

   (Not my invention, but unfortunately I can't remember whose it is.)

-- 
believing is seeing
gaal@forum2.org
http://www.forum2.org/gaal/

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il