|
|
screen garbled
need help in fixing my screen.. i was testing a script where i first
had stty -echo (when user is prompted to enter passwd).. then gave
stty -sane, i should have given stty echo... i got garbled output..
so from prompt tried the same.. the screen is garbled since..
how do i fix it.. i logged out of my console port.. relogged in. typed stty
sane many times no use..
thanks in advance
|
|
0
|
|
|
|
Reply
|
Madhu
|
1/12/2006 11:15:37 PM |
|
my terminal type is vt100
"Madhu Ramachandran" <madhuram@nortel.com> wrote in message
news:dq6nuq$1k0$1@zcars129.ca.nortel.com...
> need help in fixing my screen.. i was testing a script where i first
> had stty -echo (when user is prompted to enter passwd).. then gave
> stty -sane, i should have given stty echo... i got garbled output..
> so from prompt tried the same.. the screen is garbled since..
>
> how do i fix it.. i logged out of my console port.. relogged in. typed
> stty sane many times no use..
>
> thanks in advance
>
|
|
0
|
|
|
|
Reply
|
Madhu
|
1/12/2006 11:38:41 PM
|
|
try :
tput sgr 0
|
|
0
|
|
|
|
Reply
|
Paul
|
1/13/2006 4:17:23 PM
|
|
"Madhu Ramachandran" <madhuram@nortel.com> writes:
> need help in fixing my screen.. i was testing a script where i first
> had stty -echo (when user is prompted to enter passwd).. then gave
> stty -sane, i should have given stty echo... i got garbled output..
> so from prompt tried the same.. the screen is garbled since..
Help us out here ... what does your "garbled" output look like?
One possibility is that you've accidentally sent your terminal a
command to switch character sets, and it needs to be reset.
Another is that parity is messed up -- note that "stty sane" sets 7
data bits, even parity. You might not want that. Common usage is 8
data bits, no parity. Use "stty -parenb cs8" to fix it.
Note that you can redirect stdin on stty to do this from another
terminal (or network login), as long as you have access to the tty.
A bad parity setting is notable because only certain characters will
be messed up -- for example, 'A' and 'B' will work fine, but 'C'
doesn't.
Still another is that the bit rate is wrong.
There are possibly other problems.
--
James Carlson, KISS Network <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
|
|
0
|
|
|
|
Reply
|
James
|
1/13/2006 4:56:35 PM
|
|
thanks for your reply..
I googled and tried many things..
#echo '017'
#reset <enter>,
#clear <enter>
#stty sane
#echo " ^V escape-c"
but none of these worked for me
i did init 6 and it solved my issue..
as you mentioned.. only some characters(80 to 85%) were garbled.. saving
this post and will retest this later with stty -parenb cs8
"James Carlson" <james.d.carlson@sun.com> wrote in message
news:xoavwth4ukvw.fsf@sun.com...
> "Madhu Ramachandran" <madhuram@nortel.com> writes:
>> need help in fixing my screen.. i was testing a script where i first
>> had stty -echo (when user is prompted to enter passwd).. then gave
>> stty -sane, i should have given stty echo... i got garbled output..
>> so from prompt tried the same.. the screen is garbled since..
>
> Help us out here ... what does your "garbled" output look like?
>
> One possibility is that you've accidentally sent your terminal a
> command to switch character sets, and it needs to be reset.
>
> Another is that parity is messed up -- note that "stty sane" sets 7
> data bits, even parity. You might not want that. Common usage is 8
> data bits, no parity. Use "stty -parenb cs8" to fix it.
>
> Note that you can redirect stdin on stty to do this from another
> terminal (or network login), as long as you have access to the tty.
>
> A bad parity setting is notable because only certain characters will
> be messed up -- for example, 'A' and 'B' will work fine, but 'C'
> doesn't.
>
> Still another is that the bit rate is wrong.
>
> There are possibly other problems.
>
> --
> James Carlson, KISS Network <james.d.carlson@sun.com>
> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
> MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
|
|
0
|
|
|
|
Reply
|
Madhu
|
1/13/2006 6:14:54 PM
|
|
|
4 Replies
452 Views
(page loaded in 0.084 seconds)
|
|
|
|
|
|
|
|
|