Re: How to reset broken stty after printed binary data?
Howard Chu <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Thomas Nyberg wrote: > I’m not sure if this is the right place to ask, but sometimes my terminal gets messed up inside gdb by e.g. printing binary data. If this happens in the shell, I can execute caommands like `$ stty sane` or `$ reset` (see https://www.commandlinefu.com/commands/view/32/salvage-a-borked-terminal for more info). The most common disruption is the terminal getting stuck in alternate graphics mode, where letters are replaced with line-drawing characters. You can return to default by sending a Ctrl-O to the terminal. In the shell it'd just be "echo Ctrl-V Ctrl-O". > I can't get these methods to work in gdb and I’m wondering if there is a way to salvage my session without exiting gdb. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/