DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th September 2015
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default New The Hessling Editor (THE) port

Mark Hessling wrote the THE editor which is a similar to IBM's VM/CMS xedit and similar to Mansfield Software's kedit.

http://hessling-editor.sourceforge.net/

The editor uses Rexx as it's scripting language and in this case it needs Regina-REXX.

See my previous posting here for the Regina-REXX port:

http://daemonforums.org/showthread.php?t=9368

Attached is a port of THE:

2014-09-14 17:42 UTC: changed attachment to latest version p3
Attached Files
File Type: tgz THE-3.3RC4p3.tgz (3.6 KB, 64 views)
__________________
When you see a good move, look for a better one.
--Lasker

Last edited by comet--berkeley; 14th September 2015 at 05:42 PM.
Reply With Quote
  #2   (View Single Post)  
Old 14th September 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Builds and runs on amd64-current. However, it segfaults if I invoke it with a zero-byte file. e.g.: $ touch test.file; the test.file

I can say it looks familiar but I haven't a clue how to use the editor any longer. I last used xedit in the 1980s.
Reply With Quote
  #3   (View Single Post)  
Old 14th September 2015
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default

Quote:
Originally Posted by jggimi View Post
Builds and runs on amd64-current. However, it segfaults if I invoke it with a zero-byte file. e.g.: $ touch test.file; the test.file

I can say it looks familiar but I haven't a clue how to use the editor any longer. I last used xedit in the 1980s.
Thanks jggimi! It looks like a bug.

After building nthe without the strip command and then running gdb, I found the offending code in file.c line 762

I created a new patch-file:

Code:
--- file.c.orig	Tue Jul  9 17:06:21 2013
+++ file.c	Mon Sep 14 10:07:15 2015
@@ -759,8 +759,9 @@
       if (feof(fp))
       {
          eof_reached = TRUE;
-         for (;*(trec+read_start+chars_read-1)==DOSEOF;chars_read--)
-            ;
+         if (chars_read > 0)
+	    for (;*(trec+read_start+chars_read-1)==DOSEOF;chars_read--)
+       	 	;
       }
       /*
        * For each character remaining from the previous read in an incomplete
I updated the attachment in my original posting to a newer version "p3".
__________________
When you see a good move, look for a better one.
--Lasker
Reply With Quote
  #4   (View Single Post)  
Old 14th September 2015
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default

Quote:
Originally Posted by jggimi View Post
I can say it looks familiar but I haven't a clue how to use the editor any longer. I last used xedit in the 1980s.
Included in the build is some nice documentation in html:

file:///usr/local/share/THE/html/index.html

There is also a "Quick" reference:

file:///usr/local/share/THE/html/misc/quickref.html
__________________
When you see a good move, look for a better one.
--Lasker
Reply With Quote
  #5   (View Single Post)  
Old 14th September 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Yes, but I was building before a first cup of coffee today. I guess I just had to much blood in my caffeine system.
Reply With Quote
Reply


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
vi editor jjstorm OpenBSD Packages and Ports 20 1st December 2014 04:37 PM
preserving editor files now takes a much longer time daemonfowl OpenBSD General 1 2nd November 2013 06:40 PM
JavaScript-based CodeMirror editor reaches version 3.0 J65nko News 0 28th December 2012 01:20 PM
Pixel Image Editor ninjatux FreeBSD Ports and Packages 2 11th January 2009 06:38 PM
Php editor for FreeBSD? daemonFromHeaven FreeBSD Ports and Packages 12 12th September 2008 09:03 PM


All times are GMT. The time now is 06:09 PM.


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