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

Axel Beckert <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Organization DeuxChevaux.org -- The Citr oën 2CV Database
Message-ID <[email protected]>
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            | [email protected]  (Mail)
 X   See http://www.asciiribbon.org/              | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.