![]() |
|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Dear OpenBSD user,
-I installed nano with: Code:
pkg_add nano Code:
nano test.py Then I checked nano with: Code:
apropos nano Code:
man 5 nanorc Code:
doas touch /etc/nanorc Code:
include /usr/local/share/nano/python.nanorc Could you please explain how can I get fully functioning syntax highligthing? |
|
|||
![]()
Dear Matthew,
Thanks for the reply. I did it, the result is still the same. Edit: I checked it for an html file and in that file there is no syntax highlighting at all. Not even white and gray. Last edited by gordon.f; 3rd January 2023 at 05:03 PM. Reason: Additional file formats too |
|
|||
![]()
Dear Matthew,
When I type Code:
echo $TERM Code:
vt220 Edit: TERM=xterm-256color nano /path/to/file.html I typed the code above but not everything fit into screen. There were colors though. So this is related to terminal type. I created this virtual machine on Windows Hyper-V and it is not covering the whole screen. It only holds 11x28 cm on 25x40 cm display. How can make it fullscreen? Last edited by gordon.f; 3rd January 2023 at 06:08 PM. |
|
||||
![]()
So this is from the console (TTY) then? Don't use xterm's terminfo in the console, it will probably break stuff.
EDIT: I think you're out of luck: https://marc.info/?l=openbsd-misc&m=144286056911508&w=2 Last edited by Head_on_a_Stick; 3rd January 2023 at 06:46 PM. |
|
|||
![]()
I think I can change the terminal but I don't know how to do it. I don't want to break working stuff for nothing.
|
|
|||
![]()
Well, in the installation I excluded the X. So can I use xterm instead?
|
|
|||
![]()
Dear Matthew,
I also have another desktop and it is bare-metal OpenBSD installation. Let me try at that machine because I excluded X at that machine too. I'll let you know about the result. Thanks for the help. |
|
|||
![]()
UPDATE:
I checked if the same condition exists on the desktop machine and the answer is yes. Terminal is vt200, again. Installed nano and edited .nanorc file in order to make syntax highlighting for python but there was no syntax highlighting, not even partial syntax highlighting. Results are listed below. On both machines X is excluded on installation. OpenBSD amd64 VM on Windows Hyper-V: Terminal= vt200; partial syntax highlighting. OpenBSD i386 on bare-metal: Terminal= vt200; no syntax highlighting at all. |
|
||||
![]()
For what its worth, apparently there's work being done to enhance the console capabilities (256 colours, italic text etc.) on OpenBSD so you can use TERM=xterm in a meaningful way in wscons.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to install nano in openbsd 5.6 | Crypto333 | OpenBSD Packages and Ports | 24 | 30th December 2014 11:17 PM |
can't install nano | barti | OpenBSD Packages and Ports | 6 | 31st July 2012 06:42 PM |
Hardware VIA Announces the VIA Nano X2 Dual Core CPU | vermaden | News | 11 | 6th January 2011 04:18 PM |
C/C++ Syntax highlighting in emacs | rex | FreeBSD General | 1 | 12th October 2008 03:21 AM |
Syntax Highlighting | JMJ_coder | Programming | 17 | 22nd June 2008 02:24 PM |