LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Login shell greater than screen (https://www.linuxquestions.org/questions/linux-newbie-8/login-shell-greater-than-screen-4175587858/)

spiri13 08-24-2016 09:11 AM

Login shell greater than screen
 
Hi,

My login shell is a bit greater than the screen itself.
Is there a way to adapt the size of the login shell to the screen size?

I already tried the resize command, but if I do
Code:

resize -s x y
then the command times out and nothing happened.

hydrurga 08-24-2016 09:52 AM

Which distro version are you running? Which shell?

Can you post a screenshot (or photo of the screen)?

spiri13 08-24-2016 10:45 AM

I'm using Arch Linux with Bash.
I can't do screenshots at the login shell.

keefaz 08-24-2016 11:56 AM

Do a ' stty -a ', note the columns and rows numbers, then adjust
Code:

stty cols 80 rows 24

ondoho 08-24-2016 12:24 PM

do the letters look blurred?
i suspect this might have something to do with graphics driver and monitor resolution.
in that case, the output of
Code:

lspci -k | grep -iEA5 'vga|3d'
might be helpful, plus the command line you are booting with (from /boot/grub/grub.cfg).

Doug G 08-24-2016 08:15 PM

Another of my wild guesses, if you have a desktop with a monitor, you may have to use the lcd monitor auto-adjust or other monitor screen adjustments. I have to auto-adjust the monitor on a fedora 23 desktop periodically.

spiri13 08-25-2016 12:59 PM

stty command is working for me.
But how to save the settings for next boot?

keefaz 08-25-2016 02:50 PM

If using bash as login shell, add your setting (' stty cols ... rows ... ') in your ~/.bash_profile file (create it if it doesn't exist)
For other shell, check the corresponding man page

spiri13 08-25-2016 03:10 PM

Yes, this solved my problem.
Thank you.


All times are GMT -5. The time now is 07:34 PM.