Sponsored Content
Operating Systems Linux Serial terminal emulation - bad row column count ? Post 302429398 by vilius on Monday 14th of June 2010 10:42:57 AM
Old 06-14-2010
Serial terminal emulation - bad row column count ?

Hello,

I connect to linux using serial cable from windows machine.
I use putty as serial terminal emulator.

Everything works fine except programs which scroll text - man, more, less, vi, etc.. These programs asumme my terminal size is 80cols x 24rows (my putty window size is more than that, and I resize putty window sometimes)
The cause of this is that putty does not transfer cols rows count correctly:
Code:
# stty -a
speed 38400 baud; rows 0; columns 0; line = 0;

So programs use default 80x24 because actual col/row settings are zeros.
In contrast if I use the same putty(same settings) but ssh connection - I can clearly see how col/row settings change when I resize my putty window - and col/row numbers are correct. (so maybe not putty's fault?)

Anyway workaroud would be to freeze putty window size and insert stty command into startup scripts which sets correct col/row sizes of current putty window (I will be unable to resize putty window in this case).

Anyone knows the way to configure putty(serial connection) to transfer correct col/rows to linux even when putty window is resized dynamically - like using putty ssh?

thnaks
Vilius
 

10 More Discussions You Might Find Interesting

1. Programming

Terminal Emulation

Hi , I am working on SCO Unix who needs to know some basics concepts about how to write a program that will capture the input , output of one terminal to another ie whatever is being typed as input or echoed as output to terminal say tty02 shall be automatically be falshed to another terminal say... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies

2. UNIX for Dummies Questions & Answers

Terminal Emulation

Hello all, Am new to the forum and hope this post meets the requirements. This post will be rather lengtly but needs to be to explain the problem. I have two computers running Windows 2000 Pro. I travel for a living and use a terminal emulation program called STEP to connect to our Unix... (2 Replies)
Discussion started by: skids
2 Replies

3. BSD

ls -G in terminal emulation

Hi ! As everyone, i installed my system and started "personalizing" it. One of the adjustments was creating an alias in /etc/profile fo ls, so when I type ls it is running ls -G so i can see a colored output. Everything is ok, but after I configured my system to start in X by default (kdm as... (2 Replies)
Discussion started by: Sergiu-IT
2 Replies

4. SCO

Help: Terminal Emulation for SCO Unix...

Question from a newbie: We are running SCO Unix, and are using Century Software Windows Terminal Emulation “Term for Windows” for Win95 v6.3.9b. It used to work fine when we had Win98 on our machines, but now we are updating them with Win2000/XP. This WinTerm works fine on some machines, which... (9 Replies)
Discussion started by: fasal
9 Replies

5. UNIX for Advanced & Expert Users

Bad emulation

I am using mpc8xx processor with linux-2.4.20 kernel. These prints are getting flooded to my console almost consistenly. 14 06:29:17 MC4L-TP01 syslog.warn klogd: pte @ 0x10113d88: (0xc51cc100)->(0xc4bd144c)->0x01eec889 Oct 14 06:29:17 MC4L-TP01 syslog.warn klogd: RPN: 01eec PP: 2 SPS: 1 SH:... (1 Reply)
Discussion started by: subratasaharia
1 Replies

6. Shell Programming and Scripting

Count the number or row with same value in a column

This is the source file, we called it errorlist.out 196 server_a server_unix_2 CD 196 server_b server_win_1 CD 196 server_c server_win_2 CD 196 server_bd server_unix_2 CD 196 server_d server_unix_2 CD 196 server_es server_win_1 CD 196 ... (14 Replies)
Discussion started by: sQew
14 Replies

7. Solaris

Terminal Emulation Issue

I am having issues with installation of Sterling-Gentran:Server for UNIX 6.1. The issue within the secadmin setup. I can get into the Security Admin Setup Screens and can navigate within but cannot reply to a popup screen (the software is asking me to confirm "YES" or "NO" and none of the keys on... (6 Replies)
Discussion started by: oakbob817
6 Replies

8. Programming

printer link to terminal emulation

have the following lines in .bash_profile. "ln-s /dev/ttyp0 /dev/lpw10" and ln -s /dev/ttyp0 /dev/lpc10" this allows a terminal emulation running on xp to print locally. I would like to capture the print file and store the output in a directory. Any ideas as to how to capture the print output?... (2 Replies)
Discussion started by: petercp
2 Replies

9. UNIX for Dummies Questions & Answers

Terminal emulation OSX Vs. Solaris 11

I am using Terminal on an OSX system to access and edit crontab files on a 'headless' Solaris 11 server. Crontab -e on OSX invokes vi as the editor, which is fine, but I am getting unexpected characters on keystrokes and have to abort the edit. If this is an emulation issue, would someone please... (1 Reply)
Discussion started by: SmokeyJoe
1 Replies

10. UNIX for Beginners Questions & Answers

Copy columns from one file into another and get sum of column values and row count

I have a file abc.csv, from which I need column 24(PurchaseOrder_TotalCost) to get the sum_of_amounts with date and row count into another file say output.csv abc.csv- UTF-8,,,,,,,,,,,,,,,,,,,,,,,,, ... (6 Replies)
Discussion started by: Tahir_M
6 Replies
LDATTACH(8)						       System Administration						       LDATTACH(8)

NAME
ldattach - attach a line discipline to a serial line SYNOPSIS
ldattach [-1278denoVh] [-i iflag] [-s speed] ldisc device DESCRIPTION
The ldattach daemon opens the specified device file (which should refer to a serial device) and attaches the line discipline ldisc to it for processing of the sent and/or received data. It then goes into the background keeping the device open so that the line discipline stays loaded. The line discipline ldisc may be specified either by name or by number. In order to detach the line discipline, kill(1) the ldattach process. With no arguments, ldattach prints usage information. LINE DISCIPLINES
Depending on the kernel release, the following line disciplines are supported: TTY(0) The default line discipline, providing transparent operation (raw mode) as well as the habitual terminal line editing capabilities (cooked mode). SLIP(1) Serial Line IP (SLIP) protocol processor for transmitting TCP/IP packets over serial lines. MOUSE(2) Device driver for RS232 connected pointing devices (serial mice). PPP(3) Point to Point Protocol (PPP) processor for transmitting network packets over serial lines. STRIP(4) AX25(5) X25(6) Line driver for transmitting X.25 packets over asynchronous serial lines. 6PACK(7) R3964(9) Driver for Simatic R3964 module. IRDA(11) Linux IrDa (infrared data transmission) driver - see http://irda.sourceforge.net/ HDLC(13) Synchronous HDLC driver. SYNC_PPP(14) Synchronous PPP driver. HCI(15) Bluetooth HCI UART driver. GIGASET_M101(16) Driver for Siemens Gigaset M101 serial DECT adapter. PPS(18) Driver for serial line Pulse Per Second (PPS) source. GSM0710(21) Driver for GSM 07.10 multiplexing protocol modem (CMUX). OPTIONS
-1, --onestopbit Set the number of stop bits of the serial line to one. -2, --twostopbits Set the number of stop bits of the serial line to two. -7, --sevenbits Set the character size of the serial line to 7 bits. -8, --eightbits Set the character size of the serial line to 8 bits. -d, --debug Keep ldattach in the foreground so that it can be interrupted or debugged, and to print verbose messages about its progress to stan- dard error output. -e, --evenparity Set the parity of the serial line to even. -i, --iflag [-]value... Set the specified bits in the c_iflag word of the serial line. The given value may be a number or a symbolic name. If value is prefixed by a minus sign, the specified bits are cleared instead. Several comma-separated values may be given in order to set and clear multiple bits. -n, --noparity Set the parity of the serial line to none. -o, --oddparity Set the parity of the serial line to odd. -s, --speed value Set the speed (the baud rate) of the serial line to the specified value. -c, --intro-command string Define an intro command that is sent through the serial line before the invocation of ldattach. E.g. in conjunction with line disci- pline GSM0710, the command 'AT+CMUX=0 ' is commonly suitable to switch the modem into the CMUX mode. -p, --pause value Sleep for value seconds before the invocation of ldattach. Default is one second. -V, --version Display version information and exit. -h, --help Display help text and exit. SEE ALSO
inputattach(1), ttys(4) AUTHOR
Tilman Schmidt (tilman@imap.cc) AVAILABILITY
The ldattach command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux July 2014 LDATTACH(8)
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy