screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing baudrate of a screen session without restarting screen.


From: Axel Beckert
Subject: Re: Changing baudrate of a screen session without restarting screen.
Date: Tue, 17 Sep 2013 22:38:13 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hi,

(Thanks to Jostein Berntsen for bringing this thread back to my
attention. :-)

On Sun, Jun 09, 2013 at 12:18:17AM +0530, mind entropy wrote:
>   I have opened /dev/ttyUSB0 using screen at 115200 baud rate(screen
> /dev/ttyUSB0 115200). The ttyUSB0 is a usb to serial converter device
> file. I have a usb to serial converter connected from my laptop to an
> embedded device. Once in uboot I change the baudrate. I need to change
> the screen baudrate without restarting screen preferably using a
> shortcut key. Is it possible to do it?

>From the screen man-page (i.e. without having tried it :-):

              exec !.. stty 19200
              exec ! stty 19200
              !!stty 19200

       Set the speed of the window's tty. If your stty command
       operates on stdout, then add another `!'.

You probably can use

  bind B exec ! stty 19200

That should set the baud rate to 19200 when typing Ctrl-A Shift-B
(which is not bound by default as far as I can see).

Hope, this helps.

                Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | address@hidden  (Mail)
 X   See http://www.asciiribbon.org/              | address@hidden (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]