On 2/7/24 14:12, Waldek Hebisch wrote:
On Wed, Feb 07, 2024 at 07:34:55PM +0800, Qian Yun wrote:
So we shall make the 'more -> less' change then?

I will wait few days for possible additional info or ideas.

I would be for a change to using 'less', but as Waldek said, that might not be generally available.

Since SPADEDIT is a script, there is no need to hardcode

DEFAULTXEDITOR='xterm -e "more +$line $name"'

in this file. So one option could be

to test whether 'less' is reachable via the PATH and then set

DEFAULTXEDITOR='xterm -e "less +$line $name"'

or otherwise set something similar to

DEFAULTXEDITOR='xterm -e "more -e +$line $name; read x"'

. Seemingly, 'more' has an '-e' option.

OK, my suggestion would require to press ENTER instead of 'q', but you get the idea. Maybe, for that case it would be easiest to change the text in the 'echo' command accordingly.

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/346a638a-e1fb-437d-906a-600ec674d2f0%40hemmecke.org.

Reply via email to