Using uxterm to connect to serial ports3/30/2023 ![]() In this situation, sending the commands cat or echo to the port will either produce garbage or not work at all. These are probably different than what you will need to make your connection. If you have done it right after booting the computer and before running any other program like minicom, the communication settings will be at their default settings. You can query the communication settings using the stty program like this: stty < /dev/ttyS0 Notice that once you run a program like minicom, the port is left with the settings that minicom used. If it weren't set up appropriately, the cat and echo commands would not do for you what you might have expected. No other terminal emulator seems to be able to do that properly (either the last screenful is covered by the alternate screen and not accessible, or the content shifted to the scrollback buffer just stays there and accumulates with every screen switch).The main reason why you need any program like minicom to communicate over a serial port is that the port needs to be set up prior to initiating a connection. Although this is not very important if you use a separate launcher with required options for each switch.Īnd the only good implementation of alternate screen switching is in the pterm terminal emulator found in PuTTY - when switching to the alternate screen, it shifts the normal screen contents into the scrollback buffer (so that it is available for copying while working in the fullscreen program), and on returning to the normal screen it just scrolls those lines back to the visible screen (not leaving any garbage in scrollback). There is also rxvt-unicode, but its TERM=rxvt-unicode-256color is often a problem when connecting to older systems.Īnother useful xterm feature when working with switches and other devices is that the “Backarrow Key (BS/DEL)” and “Delete is DEL” options are IMHO easier to change for a running window than in gnome-terminal (no need to open a settings window), and this is often needed because some switches want ^H for backspace. Yes, xterm works just fine with Unicode when started with the uxterm wrapper (and in some distros xterm is patched to switch its X resource class from XTerm to UXTerm when an UTF-8 locale is detected). In theory I should like the purityĪnd vision of 9term in practice, well, xterm again.) It feelsĪ little sleazy and lazy to use xterm instead of 9term, but I do itĪnyways because it's so convenient. (9term versus xterm is thus sort of like the BSDs versus Linux. This sort of makes me unhappy, because intellectually I like Has not infrequently made xterm my lazy choice even when I could useĩterm. ![]() So xterm is the easyįinally, if I'm being honest I have to admit that there have alwaysīeen a number of little irritations and bits of extra work with usingĩterm instead of xterm, even in situations where 9term is usable. With it, including how it is different from xterm. Gnome-terminal, I have to go to extra work and then I have to put up Run vi or something else that needs cursor addressing. (If I start 9term I have to be certain that I'm not going to want to Xterm for decades so I am completely acclimatized to how it behaves. Too many seductive little attractions to it, and besides I've been using Xterm is my true default terminal emulator, the one that I start if Iĭon't want to think about which terminal emulator I want. ![]() Unfortunately I haven't been using it as much One common need for modern character graphics is apt-get's periodicĭialog boxes for questions, and another is various menu-based serialĬonsole management interfaces for things like switches.ĩterm is normally my first choice for many things, basically any time Iĭon't need either actual terminal emulation (for, eg, vi or su) or easyĬopy and paste support. User interface choices), but sometimes it's what I need, warts and all. Other two alternatives (and the Gnome people keep making questionable Gnome-terminal gets used when I need something that is completely set upįor UTF-8 or modern character graphics. Non-terminal emulator), and gnome-terminal. ![]() Routinely use three different terminal emulators xterm, 9term (which is more of a Recently I mentioned in passing that I use severalĭifferent X Windows terminal emulators, depending on the circumstances.Ī commentator sensibly asked what the circumstances were.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |