Difference between revisions of "Screen"

From ArmadeusWiki
Jump to: navigation, search
(Links)
(Connect to serial port)
 
(6 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
Screen  is  a  full-screen  window manager that multiplexes a physical terminal between several processes (see man screen). It can be used as an UART/tty terminal to drive APF*.
 
Screen  is  a  full-screen  window manager that multiplexes a physical terminal between several processes (see man screen). It can be used as an UART/tty terminal to drive APF*.
  
== Install ==
+
== Installation ==
  
In debian/ubuntu there is a package :
+
In Debian/Ubuntu there is a package :
  
 
<pre class="host">
 
<pre class="host">
Line 13: Line 13:
 
</pre>
 
</pre>
  
== Connect to tty ==
+
== Connect to serial port ==
  
To connect tty simply type :
+
To connect to serial port tty, just type :
 
<pre class="host">
 
<pre class="host">
 
$ screen /dev/ttyUSB0 115200
 
$ screen /dev/ttyUSB0 115200
 
</pre>
 
</pre>
  
Where '/dev/ttyUSB0' is your uart tty connection.
+
Where '/dev/ttyUSB0' is your serial port device.
  
To quit the terminal do '''Ctl-A K''' then 'y'.
+
To quit the terminal do '''Ctrl-a k''' then 'y'.
 +
 
 +
== Tips ==
 +
 
 +
=== Scroll correctly  ===
 +
 
 +
On Debian if you use the mouse wheel to scroll terminal, it will scroll the commands history. To solve this problem just add this magic formula in your ''~/.screenrc'' :
 +
 
 +
<source lang="bash">
 +
termcapinfo xterm* ti@:te@
 +
</source>
 +
 
 +
The explanation is given on this [http://stackoverflow.com/questions/359109/using-the-scrollwheel-in-gnu-screen stackoverflow question].
  
 
== Links ==
 
== Links ==
  
 
* [[ RS232_Terminal_configuration | Back to RS232 terminal configuration page ]]
 
* [[ RS232_Terminal_configuration | Back to RS232 terminal configuration page ]]

Latest revision as of 07:07, 27 May 2020


Introduction

Screen is a full-screen window manager that multiplexes a physical terminal between several processes (see man screen). It can be used as an UART/tty terminal to drive APF*.

Installation

In Debian/Ubuntu there is a package :

$ sudo apt-get install screen

Connect to serial port

To connect to serial port tty, just type :

$ screen /dev/ttyUSB0 115200

Where '/dev/ttyUSB0' is your serial port device.

To quit the terminal do Ctrl-a k then 'y'.

Tips

Scroll correctly

On Debian if you use the mouse wheel to scroll terminal, it will scroll the commands history. To solve this problem just add this magic formula in your ~/.screenrc :

termcapinfo xterm* ti@:te@

The explanation is given on this stackoverflow question.

Links