Increase the width of serial terminal

Hello,

I use gtkterm to connect to external board.
When path on prompt becomes quite long I can’t no more type commands: cursor return to the origin:

debian@beaglebone:/sys/devices/system/cpu/cpufreq/ondemand$ sudo sh -c "echo 90

In this example cursor is on ‘d’ character (i.e. on debian).
Where can I setup the “width” of serial terminal ?

Thanks.

Here’s a good write up, description of the issue.

https://wiki.archlinux.org/index.php/Working_with_the_serial_console#Resizing_a_terminal

Regards,

stty rows 40 cols 160

Works well !
Thanks.