Very small editor "window"
Christoph Pleger
Christoph.Pleger at cs.tu-dortmund.de
Wed Oct 12 08:59:12 UTC 2016
Hello,
> In short, how do you call the editor, IOW how does the unit file look
> like and which editor do you try to launch? That you want to edit
> hostnames and IPs with the editor doesn't help us, to help you.
The editor is joe, a very small and simple editor suitable for beginners.
It is a non-GUI editor and in my special case, is running on a text
console (tty1).
My systemd service just calls a single bash script called linf2-rescue.
That script first includes another file, which contains definitions for
some functions. Part of one of the functions is to call the editor. Then,
the script prepares some things and at last, calls the editor function.
Surely, this is a complicated way to call the editor, but as all this id
for a bootable CD with several grub menu options to start a rescue system
or install a minimal system on harddisk, there are reasons to do so.
I now found that the same problems occur when I call linf2-rescue from
command line after a normal login on tty1. They do not occur if I move the
editor call from the include file to the script.
I wonder what settings, other than environment variable TERM, affect
number of columns and lines - I checked TERM and as usual, it is 'linux'.
And I do not use any command to change terminal settings ...
What surprises me most is, that when I use exactly the same way to call
the editor in Debian 8, everything works fine.
Regards
Christoph
More information about the ubuntu-users
mailing list