Modem disconnect garble screws up my terminal character set

Modem disconnect garble screws up my terminal character set

Post by timo.. » Tue, 03 Aug 1993 02:40:13



: When I disconnect from my online system, occasionally, some 8-bit garbage
: comes down the line and sets my terminal's character set real weird.  This
: is for output-only, as I can still type commands and Linux will respond
: correctly.  I just can't understand or read what I typed.  It's as if 0x80
: was added to every character or something, 'cause they all appear as funky
: line drawing characters (from the PC char set), bullets and such.

: What's up?  If no one knows, how can I reset my terminal session to a
: start-up condition without rebooting?

Hit Control-v, Control-o, then enter. It will say command not found, but
reset the terminal.

--

Timothy Buchanan.


 
 
 

Modem disconnect garble screws up my terminal character set

Post by Warner Lo » Tue, 03 Aug 1993 07:16:10




>: line drawing characters (from the PC char set), bullets and such.
>Hit Control-v, Control-o, then enter. It will say command not found, but
>reset the terminal.

Or say "echo ^V^O" (it will show up on your screen as "echo ^O"), and
you won't get the error message... :-)

Warner
--

I've almost finished my brute force solution to subtlety.

 
 
 

Modem disconnect garble screws up my terminal character set

Post by Ed Ca » Tue, 03 Aug 1993 07:42:44



: : When I disconnect from my online system, occasionally, some 8-bit garbage
: : comes down the line and sets my terminal's character set real weird.  This
: : is for output-only, as I can still type commands and Linux will respond
: : correctly.  I just can't understand or read what I typed.  It's as if 0x80
: : was added to every character or something, 'cause they all appear as funky
: : line drawing characters (from the PC char set), bullets and such.

: : What's up?  If no one knows, how can I reset my terminal session to a
: : start-up condition without rebooting?

: Hit Control-v, Control-o, then enter. It will say command not found, but
: reset the terminal.

Or you could do what I did - put it in your /etc/issue file. :)
--

If you want magic, let go of your armor.  Magic is so much stronger than
steel!        -- Richard Bach, "The Bridge Across Forever"

 
 
 

Modem disconnect garble screws up my terminal character set

Post by Eric Sulzn » Tue, 03 Aug 1993 10:25:21





>   >: line drawing characters (from the PC char set), bullets and such.
>   >Hit Control-v, Control-o, then enter. It will say command not found, but
>   >reset the terminal.

>   Or say "echo ^V^O" (it will show up on your screen as "echo ^O"), and
>   you won't get the error message... :-)

Great.  Will someone please briefly explain why this works?  Thanks.

disclaimer -> I am not speasking for Intel.
--

 
 
 

Modem disconnect garble screws up my terminal character set

Post by Olaf Ti » Tue, 03 Aug 1993 22:56:38



> When I disconnect from my online system, occasionally, some 8-bit garbage
> comes down the line and sets my terminal's character set real weird.  This
> is for output-only, as I can still type commands and Linux will respond
> correctly.  I just can't understand or read what I typed.  It's as if 0x80
> was added to every character or something, 'cause they all appear as funky

The line noise triggers an escape that will activate the alternate
character set. The same is likely to happen when you cat a binary.

Quote:> What's up?  If no one knows, how can I reset my terminal session to a
> start-up condition without rebooting?

Try the reset command, or type ^V^O. Inserting a ^O in your /etc/issue
will make sure that the console is reset after logout as well.

Olaf
--



what good is a photograph of you? everytime i look at it it makes me feel blue

 
 
 

Modem disconnect garble screws up my terminal character set

Post by Warner Lo » Wed, 04 Aug 1993 01:35:24



>>   Or say "echo ^V^O" (it will show up on your screen as "echo ^O"), and
>>   you won't get the error message... :-)
>Great.  Will someone please briefly explain why this works?  Thanks.

Sure.  This is a generic Unix question, but I think that the interest
level here warrents an answer.

VT100's have the ability to switch character sets on the fly.  You can
specify that you want line drawing characters or lower case letters
for the character codes between 97-126.  When a VT100 sees an ASCII 14
(^N or Control N), it selects the line drawing character set for all
future rendering of characters in the 97-126 range.  When it later
sees an ASCII 15 (^O), it selects the "normal" lower case letters, et
al, in the 97-126 range.  I don't have my VT100 manual handy, but I
think that this feature may need to be enabled before it works.

So, back to the Unix specific part of this post.  I suggested typing
"echo ^V^O".  This will echo a ^O to your screen (followed by a
newline, but that doesn't matter and can be eliminated by adding -n
after the echo, but I digress).  The reason that you need the ^V
before the ^O is that ^V is typically the "Turn off processing for the
next character and insert it into the command line buffer."  Kind of a
raw mode for next character sort of thing, if you know the difference
between raw and cooked modes.  Shells with command line editing
typically emulate this behaviour (at least I know that tcsh and bash
seem to) because it is deeply ingrained in the Unix culture, but has
its roots in a distant past (VMS does it, as does TOPS-20, but I don't
know if it dates back farther or not).

Warner

--

I've almost finished my brute force solution to subtlety.

 
 
 

Modem disconnect garble screws up my terminal character set

Post by Lloyd Mill » Wed, 04 Aug 1993 22:02:56




> > When I disconnect from my online system, occasionally, some 8-bit
> > garbage comes down the line and sets my terminal's character set real
> > weird.  This
>    That's about normal 8).
> > What's up?  If no one knows, how can I reset my terminal session to a
> > start-up condition without rebooting?
>    If you are using the SLS release, their should be a command
> 'reset' that you can type in and have the screen fixed.  When I
> switched to MCC, I tried to get a copy, and the only reset I found on
> the net doesn't fix the problem 8(.
>    So, if you have SLS, try that.  Anyone know of a reset package
> that will fix this prob?

#! /bin/bash
echo -ne "\017"

--

 
 
 

1. character set screwed

=46ROM: Richard Murray

SUBJ:  Re: character set screwe
DATE:  8-04-94
TIME: 16:56
PUBLIC

;rep:9,0

CO> :    That wouldn't be a problem, except that when it happens, my =
characte
CO> :    set is hosed and I don't know how to reset it to normal (sho=
rt of
CO>
CO> do:
CO> more /vmlinux
CO> hit enter until your characters are fixed then hit q to quit.
CO> Works like a charm.

Cute way of doing things, however it's a lot easier than that :)

Following is a function from my .zlogin file (I use zsh) ... In tcsh,=
 csh,
etc, there are also ways of getting a command or commands to issue ev=
erytime
the shell issues another prompt... in this case, the

function precmd {=09=09=09=09# you guessed it - before a command
=09echo "^V^O"=09=09=09=09=09# the ^V and the ^O must be entered LITE=
RALLY
=09=09=09=09=09=09=09=09# though.  Using JOE as the editor, hitting
 =09=09=09=09=09=09=09=09# the ` back-quote mark and then the V will =
produce the needed characte
=2E
=09date
=09}

Or if you only want to fix it as needed, just hit ctrl-v followed by
ctrl-o...

=2E..
 * ATP/Linux 1.42 * How young can you die of old age?
 =FE BGQWK 1.0 Unregistered Evaluation Copy

  Route: 518/0f17 518/2
 Gated through The Electric Monk GTPOWERCOM Net/Node 518/002

2. Argh! Dosemu is impossible

3. character set screwed up

4. Booting Solaris 7 using window nt

5. Garbage character sets on terminal and termservers

6. Good shell script book...

7. Terminals being set to weird characters...

8. gateway with dynamic IPs

9. Terminal Character Set

10. kernel 2.0.12: terminal character set changed ??

11. ALTERNATE CHARACTER SET OF A TERMINAL

12. Shape Ups,Men's Shape Ups,Men's Skechers Shape Ups - new styles!

13. Scrambled, garbled unreadble characters