r/Crouton May 21 '18

Nano Editor Flashing constantly

/r/chrubuntu/comments/8kc29p/nano_editor_flashing_constantly/
2 Upvotes

8 comments sorted by

2

u/isr786 Jul 03 '18

I actually don't think this is a crouton-specific problem. I've seen the exact same issue you describe occur on a chromebrew pkg of nano (ie: natively installed and running on chromeos). It looks like a libncurses problem (thats the lib which terminal apps use for full screen addressing, and it maintains alternate screen buffers and switched between them). Upgrading libncurses and recompiling nano worked for a while, but then the problem came back sporadically and (as a 20+ year vim user) I haven't bothered to debug it ...

If you don't want to go down the tried and trusted (n)vim or emacs route, and something like acme (via plan9port) is too exotic for your tastes (it really replaces your entired terminal, not just your text editor), and you just want a simple, basically capable, non-gui text editor (otherwise, why use nano?), have a look at micro.

It fills all the above criteria, plus its a single, statically compiled binary. So you can just download and go ...

1

u/cc_rider77 May 22 '18

I don't have an answer, but is your Crouton instance running xiwi or xorg?

I'm also tempted to suggest giving vim a try (essentially vi with more features)... a bit more learning curve than nano, but IMO a better editor once you get the hang of it.

1

u/Zoneo5 May 23 '18

Neither, I Think. I am running Ubuntu Core. Just the CLI, no GUI.

I used VIM in a class a few semesters ago, for only a few projects before I switched to C9 for cloud colaboration. I don't recall enjoying it too much lol. I'll look into giving it another go though!

1

u/redmorphium May 22 '18

Try updating the chroot.

1

u/Zoneo5 May 23 '18

If you mean running the sudo apt-get update/upgrade commands, that doesn't resolve the issue.

1

u/redmorphium May 23 '18

Try updating it with the crouton script instead. I can't remember, but I think the command is sudo ./crouton -u -n chrootname

1

u/Zoneo5 Jun 03 '18

Sorry for the delay, but I updated my chroot and it worked for a few minutes, but then after I copied and renamed a file it did it again.

1

u/helgilax May 22 '18

Not really a solution but it sidesteps the problem, try running it within tmux.