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 15th November 2017
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default Unicode characters on the command line

Is there a way to output unicode characters on the OpenBSD shell command line knowing only the code point? For example, code point U+00D0 = Ð. Is there a way to output this character by say, pressing the Alt key, typing 00D0, and releasing the Alt key?

There are similar mechanisms in Linux and Windows to do this, but I couldn't find anything using OpenBSD.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
  #2   (View Single Post)  
Old 16th November 2017
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 456
Default

x11/gnome/terminal will allow unicode characters to be entered with the usual <Ctrl>+<Shift>+u followed by the code point.

It does pull in pretty much the entire GNOME desktop though...
__________________
Are you infected with Wetiko?
Reply With Quote
  #3   (View Single Post)  
Old 16th November 2017
blackhole's Avatar
blackhole blackhole is offline
Spam Deminer
 
Join Date: Mar 2014
Posts: 314
Default

What about rxvt-unicode ?
Reply With Quote
  #4   (View Single Post)  
Old 16th November 2017
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

Quote:
Originally Posted by Head_on_a_Stick View Post
x11/gnome/terminal will allow unicode characters to be entered with the usual <Ctrl>+<Shift>+u followed by the code point.

It does pull in pretty much the entire GNOME desktop though...
I wasn't aware it did that, thanks. Terminator also does the same (at least on Linux), so I might install that. It also has far fewer dependencies.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
  #5   (View Single Post)  
Old 16th November 2017
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

Quote:
Originally Posted by cynwulf View Post
What about rxvt-unicode ?
That's what I use. Actually I was wondering if there was a more terminal independent way of entering unicode characters. Of course, I can always use

% echo '\u<hex-code>'

or cut-and-paste, etc.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
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
PS1 command line prompt AFTER su s2scott OpenBSD General 4 21st February 2012 02:33 PM
Where to begin with GUI as a frontend for command line? Daffy General software and network 9 12th August 2011 03:41 AM
command-line-fu (digg like site with UNIX commands) vermaden Guides 3 13th March 2009 03:56 PM
avidemux2 command line roddierod FreeBSD General 1 10th November 2008 08:27 PM
OSS , playing a sound via command line.. scotsman FreeBSD General 7 29th August 2008 08:01 PM


All times are GMT. The time now is 03:08 AM.


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