DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th October 2018
fvgit's Avatar
fvgit fvgit is offline
Real Name: Tempvs fvgit
Package Pilot
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 149
Default vi (=nvi from base) prob.: a character declared printable a day keeps the cursor away

Default behaviour, vi testfile:
Code:
RRP: \xc2\xa329.99. You Save: \xc2\xa316.40
So I add the following to ~/.exrc
Code:
set print="¡¢£¤¥¦§¨©ª«¬¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
Let's try again, vi testfile:
Code:
RRP: £29.99. You Save: £16.40
Now we're talking...

I can also enter German umlaute in vi just by entering the ä-Key on my keyboard, for instance.

But there's a catch! For each character contained in the 'set print' statement (2nd 'Code:' block above) that I type into vi in INSERT mode the cursor moves one space to the right, away from its usual position. After typing sth. like this:
Code:
These are German umlaute:_
I end up with sth. like this:
Code:
These are German umlaute: äöü   _
(The underscore '_' indicates the cursor position after typing 'ä', 'ö', and 'ü' respectively.)


I'm not ruling out any misconfiguration or stupid mistake on my side. So my question to the pros here is, can anything be done about this annoying behaviour?
Reply With Quote
  #2   (View Single Post)  
Old 14th October 2018
ibara's Avatar
ibara ibara is online now
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 631
Default

vi(1) is not UTF-8 yet. Can you try editors/nvi2 from ports and see if you get the same behavior? That version of nvi is UTF-8.
Reply With Quote
  #3   (View Single Post)  
Old 14th October 2018
fvgit's Avatar
fvgit fvgit is offline
Real Name: Tempvs fvgit
Package Pilot
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 149
Default

You're right! The ports version (btw, it's nvi not nvi2) works as it should.

So I'll file this under 'not-yet-fully-supported behaviour'. Thanks, Ibara!
Reply With Quote
  #4   (View Single Post)  
Old 14th October 2018
ibara's Avatar
ibara ibara is online now
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 631
Default

Quote:
Originally Posted by fvgit View Post
You're right! The ports version (btw, it's nvi not nvi2) works as it should.
Well, you can tell I don't use it. Upstream calls itself nvi2; I didn't realize we didn't import it under that name.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
special character problem kerasi OpenBSD General 3 31st December 2015 03:32 PM
Tuesday declared 'The Day we Fight Back' against NSA et al J65nko News 4 13th February 2014 05:51 PM
Cursor skipping/freezing when rendering pages in Chromium GullibleJones OpenBSD Packages and Ports 5 9th February 2012 11:28 PM
Tomcat 7: Apache Servlet Container declared stable J65nko News 0 15th January 2011 01:49 AM
xterm + bash: Make <DEL> delete char under cursor taylor_venable OpenBSD General 7 13th December 2008 11:53 PM


All times are GMT. The time now is 03:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick