So, whenever i connect to the serial console with minicom from another linux system, the width of the terminal gets small. As if it has a fixed number of columns, is it possible to change this? I’m using @frank-w’s kernel/image.
Is agetty the binary responsible for it? I see this line on ps:
The serial settings are debian default,i do not change them. If i resize my gnome-terminal the serial console seems also resize,but sometimes chars getting overridden before reaching the full width while typing…i guess this is the issue you mean,right?
@shadow where did you placed this function and call? I guess on the bpi in users .bashrc
I place the ‘resize’ utility from Debian xterm package in my .profile like this (restricting it to interactive usage):
[[ $- =~ i ]] && {
eval $(resize)
}
This way I get always the correct terminal settings if .profile is executed at all. What is not the case if I exit the terminal emulation over the serial line and reconnect later:
So when I reconnect to my BPI-R3 over the serial line via ‘picocom’ and terminal size settings changed since my last ‘picocom’ usage I simply logout and after re-login due to the above .profile entry settings get automatically re-adjusted to the current values.
Alternatively you can call ‘resize’ manually at any time if you have changed the terminal size.
The above script from ‘shadow’ appears to have the same functionality as xterms binary ‘resize’
Yes i know resize and had used it some time,but mostly i can work wothout it and i have changed my prompt to have more space (1 line information and second line where i type commands). It seems to have similar function without the need to install a xserver binary afair there was a way to define a event hook (e.g. via trap) for window size change to call it automaticly.