Debian – How to type a right to left language in terminal

command linedebiannanoright-to-left

I have installed Debian recently (without a GUI) to learn the CLI and C using the LearnCodeTheHardWay tutorials. Its going well, and I feel at this stage I do not need any GUI.

However, one thing I might need is to view, and edit in a right to left language, specifically Arabic using say… nano. Or with sqlite. Is that possible?

EDIT:
VIM or EMACS will be fine also. I do not mind the text editor. Also I would like to do this without install X, or any GUI stuff of any sort.

EDIT:
By Terminal what I understand is the black window with the $ symbol, which is what you get with the default Debian install. Its using Bash, and I use SSH to remote into it.

Best Answer

see comparison of text editors , do an intersection between "right-to-left and bidirectional text" and "text shell integration" .


:set lefttoright

for vim . see documentation and this question .

--

emacs generally can autodetect language and do the corresponding layout , on a per paragraph basis . see documentation .

Related Question