You are not logged in.
Pages: 1
I'm sure I've come across the solution to this in the past but, for the life of me, I can't seem to find it now.
When I exit nano, parts of the file that was opened remain on the screen and my prompt shows up at the bottom of the screen.
I know for a fact that it wasn't always behaving like this in the past.
Does anyone know how I can make the screen clear upon exiting nano so the prompt goes to the top of the screen as "normal"?
Thanks in advance for your assistance!
Offline
Sounds like your TERM is being forced/broken.
Offline
OK, what would cause that?
$ echo $TERM
linux
$
Is what I've got.
Offline
What terminal are you running that in? The TTY?
Offline
tty1 I suppose.
I boot, login, nano somefile, exit and screen won't clear.
I've no DM/DE/WM installed at the moment.
Last edited by S3NTYN3L (2016-10-15 05:50:02)
Offline
That is just the capability of the TTY. You can either install a multiplexer with a more comprehensive terminfo (like tmux), or get used to hitting Ctrl-l
Offline
Hmm, OK. Thanks just the same.
Offline
Or make an alias.
alias nano='nano; clear'
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
What is your graphics hardware?
For Intel cards especially, enabling an early KMS start can fix some TTY problems.
Offline
Yes, it's Intel HD Graphics.
I'm in the middle of nuking the hard drive at the moment because pacstrap was giving me warnings about skipping a bunch of files. (IIRC, stuff like grep and which, etc).
I'll reinstall the base/base-devel and get back to you guys.
Thanks for the help so far.
Offline
Happens also with vim but not with mc. Happens also w/ VGA console.
Seems they're not using the alternative buffer or call stuff that's not supported.
No idea though, whether this used to be different in any past.
Offline
I'm in the middle of nuking the hard drive at the moment because pacstrap was giving me warnings...
Why are you using pacstrap on an installed system? Pacstrap is *only* for the initial installation.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Why are you using pacstrap on an installed system? Pacstrap is *only* for the initial installation.
Because I thought maybe something got corrupted while I was messing around with config files and I attempted a clean install.
I'm guessing that parted only does "quick formats" whilst creating file systems.
Anyway, here I am, nuking the drive to see if 1) I can get rid of those warnings about skipping packages and 2) the behavior I want, the screen clear after exiting nano, etc, comes back.
Offline
1) reinstalling because pacman gave you an error you didn't understand is never a good idea. Figure out what the error actually meant.
2) parted doesn't create filesystems, it creates partitions. The mkfs family of tools make filesystems.
3) Don't expect much different with the fresh install. What you are seeing is not a "bug" just a common behavior. You can follow one of the above suggestions like using an alias to include a clear command, or using tmux/screen. Or you could look into something like fbterm. If you do much work in a tty I'd suspect you'd want fbterm and/or tmux/screen.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Understood, Trilby.
I misspoke regarding parted.
FWIW, I used parted to recreate my partitions and then mkfs to create the filesystems.
I meant to say that mkfs seems to only perform quick formats.
The need to CTRL+L I can live with.
I posted because, in the past, nano exited and the screen cleared on its own.
Meaning, I didn't set an alias or install a third-party package, etc.
As for pacman skipping base packages, you're correct, I've no idea why that would be.
Especially since it's never done so on this laptop/hardware before.
EDIT:
It's skipping because the packages in question are also part of the base-devel group.
That seems a bit silly to me having them in both groups.
Would someone mind explaining why this is? I'm curious, lol...
Last edited by S3NTYN3L (2016-10-15 22:12:36)
Offline
Pages: 1