Hacker News new | past | comments | ask | show | jobs | submit login
WordPerfect for Unix character terminals (github.com/taviso)
214 points by metadat on April 11, 2023 | hide | past | favorite | 82 comments



There is _still_ no other word processor I'm aware of that can properly convert to title case. Not to mention Reveal Codes. I... might actually use this, not just play with it.


I was a computer labs staffer in the early 90s, and for a lot of students our labs were their first exposure to word processors, and man, I hated supporting WordPerfect for DOS. Students couldn't figure out how to apply formatting correctly. Trying to change something's format, they would would reveal codes and delete half of a formatting code pair. I spent so much time explaining why half their paper was now in italics or bold.

WYSIWYG works so much better for most people.


"this sure is a great circular saw"

"table knives work so much better for most people"


> There is _still_ no other word processor I'm aware of that can properly convert to title case. Not to mention Reveal Codes. I... might actually use this, not just play with it.

Like this?

http://aitech.ac.jp/~ckelly/midi/help/caps.html


Yep. They're complicated rules to memorize but you can definitely reduce them to an algorithm.


Equation editor and outlines with 'move family' type functionality as well. Those are not exclusive features but interesting for a terminal application.


vim: select your text, press the ~ key until you get the case you want ..


> until you get the case you want

The GP was talking about a particular type of formatting:

* https://en.wikipedia.org/wiki/Title_case


Yeah, I love vim, but that’s not its forte


    : help case
To turn one line into title caps, make every first letter of a word uppercase:

    :s/\v<(.)(\w*)/\u\1\L\2/g


That's not title case - you don't capitalize words such as a, the, of, etc. unless they are at the beginning of the title.


> That's not title case - you don't capitalize words such as a, the, of, etc. unless they are at the beginning of the title.

Exactly. Capitalizing every letter is the lazy, half-ass pseudo title case that I always have to correct. Unfortunately its becoming normalized because many major companies that should know better don't even bother to do it right.


You could also use the vim :%!python3 your_script.py (where your_script.py does the work to format the text) command that takes the text of the buffer as stdin to the script and replaces the buffer contents with stdout of the script. This can also be combined with visual mode linewise to only replace specific lines of the buffer (must work on entire lines selected).


This is interesting! My first exposure to Unix was in 1990 when my mother worked for a law firm in California. Everyone had dumb terminals on their desks connected to a very very large tower computer in the server room. I don't remember anything about it (I was only about 14) except that it said Santa Cruz operations Unix on it.

And of course, at her desk I could see my mom log into her Unix account and launch WordPerfect with wp. I was blown away! There was also a spreadsheet application but I have to admit that I don't remember what it was. It was probably Lotus 123 but I don't know if it was ported to Unix or not.

Little did I know that I would be making a living with Linux all these years later!


123 was indeed ported to UNIX, I have that working as well! https://github.com/taviso/123elf

(Although it was more likely procalc - a popular low-end lotus clone)

I'm also working on porting dBase IV, another popular package from the era :)


Thanks! https://news.ycombinator.com/item?id=31455968

Lotus Agenda for DOS is unmatched to this day, despite an epic reboot catastrophe, https://en.wikipedia.org/wiki/Open_Source_Applications_Found...

  The mission of the Open Source Applications Foundation (OSAF) was.. 

    Carry forward the vision of Vannevar Bush, Doug Engelbart, and Ted Nelson of the computer as a medium for communication, collaboration, and coordination.

    Design a new application to manage personal information including notes, mail, tasks, appointments and events, contacts, documents and other personal resources.

    Enable sharing with colleagues, friends and family. In particular, meet the unique and under-served needs of small group collaboration.
EccoPro (successor to Agenda) for Windows works on Apple Silicon Macs via Wine/Crossover, https://en.wikipedia.org/wiki/Ecco_Pro & https://groups.io/g/EccoPro


> 123 was indeed ported to UNIX

I keep on hoping that some day the IBM mainframe port (MVS and VM/CMS) might turn up. It was further away from the DOS original than the UNIX port was, due to the changes required by 3270 block mode terminals.


That is a darn fine spreadsheet in the console. I am tempted to try it!


Imagine all the great commercial code lost to time. There should be a historical preservation movement to try and find the source code for old abandoned applications like this.


> Imagine all the great commercial code lost to time. There should be a historical preservation movement to try and find the source code for old abandoned applications like this.

One of these days, an AI is going to be able to construct realistic-looking source code which compiles to an identical binary using contemporaneous tools. It may become very hard to tell the genuine vintage source code apart from the AI deepfake decompilation


My recollection is that WordPerfect Office on minicomputers had its own spreadsheet application. Wikipedia says "PlanPerfect". By now I don't remember.


Since it was running on SCO, the spreadsheet could have been Microsoft Multiplan, competitor of VisiCalc… Microsoft Excel before Excel :)


Oh, Multiplan was horrible.

As a SCO Unix and MS Xenix developer, I remember having to write lots of nasty little programs in C to do stuff with it and its files, just to make it usable. It had a terrible trick of writing multiple documents to the same file.


I wonder what they used instead of outlook


Before Outlook there were many, many options, which is kind of the point. You might be intrigued by something like All-In-1 https://en.wikipedia.org/wiki/ALL-IN-1 My own first email client was VMS Mail at uni in 1988, then pine when I started to use SunOS and Solaris every day for work. Lotus Notes was very big for a while too before the web killed it off.


> Lotus Notes was very big for a while too before the web killed it off.

I think the architecture of Notes/Domino was technically very interesting - a rapid application development environment incorporating a replicated document-oriented database, cross-platform GUI forms designer, and scripting language.

And then that environment was used to build an email and calendaring application. Some customers bought it just for email and calendar, and ignored its potential as a platform for custom applications. Others used its application development features heavily.

But I think part of its decline was that its potential as an application development environment/platform never received enough emphasis from IBM. IBM bought it for the email and calendaring - their mainframe-based groupware line (OfficeVision, PROFS, DISOSS, SNADS, etc) was really showing its age, and buying Lotus was their answer to that business problem. And that’s how they positioned it in the market, and that became the focus of their R&D investment.

I remember people used to complain about how the Notes email UI was confusing - due to its cross-platform heritage, it didn’t use the same keyboard shortcuts as Microsoft apps, for example. (Something I believe they improved in newer versions.) Yet underneath that email client lay something powerful that its competitors (primarily Exchange and GroupWise) completely lacked

I wonder what might have been, if IBM had positioned it more heavily as a platform for applications rather than just email+calendar - or if it had ended up with someone other than IBM? IBM didn’t really need an application platform because they already owned plenty (WebSphere, CICS, IMS, TPF, AS/400, VisualAge, Informix-4GL, Rational, SAA ADCycle, Cross System Product, UniData/UniVerse, EGL, PowerHouse 4GL, etc). Maybe it would have gone better with a company for whom it was their sole or primary application platform instead of just one among many?

I’ve heard some suggestions that now HCL has bought it, they have a renewed interest in using it as an application platform compared to what IBM had. Even if that’s true, probably too late to make much of a difference-there are so many other options nowadays, arguably better.


What you've said is pretty much what I always say about Notes, it was much more than Outlook and when Outlook took over I often wondered what folks did for all the things that Notes did that weren't just email and calendar. I wonder what is comparable now in the ability for someone not very technical to be able to knock up, say a simple change approval system? It sometimes seems with the loss of such things as Notes, Foxpro and Hypercard that it has become less easy for non-dev folks to create simple apps rather than more easy.


> I think the architecture of Notes/Domino was technically very interesting - a rapid application development environment incorporating a replicated document-oriented database, cross-platform GUI forms designer, and scripting language.

And so ahead of its time I understand it's been used to kill patents, as a demonstration of prior art.

I think I read an article once about a patent case that featured someone tracking down a still-shrink wrapped copy of Lotus notes, then having a developer use it to demonstrate it had the features that had been erroneously been patented by someone later.


Notes was pretty horrible for creating all sorts of legacy technical debt. Some handy Joe would create some database that would worm itself into critical business processes but be completely unmaintained.

Of course this could be solved by policies but I've seen this happen in many organizations.

It was also incredibly buggy. I'd be looking at a Java error dump several times a week. Especially once they integrated sametime into notes.


> Notes was pretty horrible for creating all sorts of legacy technical debt. Some handy Joe would create some database that would worm itself into critical business processes but be completely unmaintained.

And is the "better" alternative is to avoid that "legacy technical debt" by forcing that "handy Joe" to keep doing things by hand, by denying him the tools to solve his problem? Because if you don't have the connections to get budget to pay a professional developer, you shouldn't be able to solve your problem with software?

IMHO, it's better to think of those kinds of "handy Joe" apps as prototypes.


The problem is they often don't get beyond the protoype stage, the 'developer' leaves the company and whole business processes end up depending on something that is no longer maintained.

In our place it took a huge effort to move away from notes. Literally thousands of 'important' databases in the system over the years. Some were converted to web using low-code tech, some were simply archived or exported. But it was a huge mess.

I'm not against prototyping or efficiency at all. But the reality is that Notes had become a really stale platform, and even a prototype should have a continuous maintainer.

In the end we just had too many users using things that nobody knew anything about. This was really a huge risk.

> Because if you don't have the connections to get budget to pay a professional developer, you shouldn't be able to solve your problem with software?

This is a good point though, and we've now kept a whole team of low-code devs that take on things just like this for new projects that could offer efficiency, but they do it in a proper way with documentation and maintenance.


I hated using Lotus Notes for emailing and calendering! But, when someone showed me the application develoopment aspects, it was then i came to the conclusion that it was an amazing app-building platform, and a mediocre email/calendar app!


> I wonder what they used instead of outlook

Maybe something like Pine? Even into Web 1.0 days, it was still pretty common for people to use. Everyone in my high school accessed their school-provided email account by telnetting into a Unix server and accessing Pine via a menu system.


I used elm before pine, on a terminal hooked to a Bull-Honeywell machine running Multics...


Ah that brings back memories.


Well Lotus had email at one point. But before it did, Unix sendmail!


WordPerfect had email too. Novell bought GroupWise from WordPerfect. Before the Novell acquisition, it was called WordPerfect Office, and before that WordPerfect Library. It was available for DOS, Windows, Mac, UNIX (SCO Xenix, AT&T 3B2, NCR TOWER), OS/2, VAX/VMS, and Data General minicomputers.

Confusingly, Corel now sells "WordPerfect Office" which is nothing to do with the original WordPerfect Office. The current "WordPerfect Office" is an office suite composed of WordPerfect (word processor), Quattro Pro (spreadsheet, acquired from Borland), and a few other apps. The original "WordPerfect Office" was not an office suite, it was a groupware suite, with email, calendaring, document management, etc.

And GroupWise is still around, but now called Micro Focus GroupWise, since Attachmate bought Novell and then Micro Focus bought Attachmate. And more recently, Micro Focus has been bought by OpenText. I wonder how many people still use it though. I remember when everybody was jumping ship from GroupWise – 15+ years ago. If everyone was abandoning something 15 years ago, who is left today?

Addendum: Someone on Reddit claims [0] there is only one large GroupWise customer remaining – US Federal Bureau of Prisons. If true, makes sense – where else but some government agency would something like this survive?

[0] https://old.reddit.com/r/sysadmin/comments/tlwvsd/anyone_els...


> If everyone was abandoning something 15 years ago, who is left today?

Those that were and are still afraid of such a migration I guess.

I remember using groupwise in the early 2000's at work, it didn't felt much worse than the outlook/exchange and Lotus Notes I have been using later. I think the one particularly worse was Lotus Notes. I think it received some instant messaging just after I left that company but most teams were using rogue jabber/xmpp servers everywhere even on companies that provided Microsoft Lync because the xmpp clients were superior,the experience more reliable and people didn't want to be spied by their bosses/HR teams. It is funny how people have surrendered in most places while nothing prevent them technically to discuss on other instant messaging platforms.

Had I been the one tasked to be admin it may have been quite different. I have no idea about groupwise but I remember Lotus Notes admins had some headaches (but they weren't especially smart or knowledgeable people so it may just be that team and not the product).

Besides I don't think that email and calendaring are technologies where a particular product makes a huge difference. We don't send and receive emails, manage contacts or schedule meetings much differently than 20y ago. The Outlook/exchange combo is popular because of microsoft enterprise licenses and its integration with active directory (and now Azure). It is really Active Directory that is the product that tightly bind every Microsoft Product together and make them so ubiquitous and competitive against alternatives. I don't know how much Micro Focus sell its solution vs on premise exchange + outlook clients licensing and or office 365 (remember that some company still don't want to go cloud).


> Those that were and are still afraid of such a migration I guess.

You can guess how the process occurs.

Some manager: "We need to get rid of GroupWise, so we will create a project"

a while later

Gordonjcp: "This looks much harder than it seems, let's just keep it going a couple more years, here's a plan for getting rid of it, you can put that into action when I retire and in the meantime let's work on reducing our dependence on it"

a while later

prmoustache: "Right, that's that beardy old twat gone, let's get rid of this sodding GroupWise nonsense once and for all. Oh actually, it's tied into quite a lot of other things, according to this plan, let's make a plan to replace all that"

a while later

prmoustache's apprentice: "Right, that's that prmoustache numpty gone, can't believe they never got round to getting rid of GroupWise, let's look at this dusty old plan to - oh, there's really quite a lot of work in that, let's get a contractor in..."

And so it goes.


In the case of US Federal Bureau of Prisons, I suspect the actual reason is this: they have over 36,000 employees. When you have that many employees, an email migration project is not going to be cheap. Even at private sector prices, you are looking at a multi-million dollar project; then you have to add the usual federal contracting overhead. But, many other US government agencies used GroupWise too, and they all migrated off it–so very achievable if you have the budget.

Which is probably the real problem – does Congress want to appropriate US$X million so federal prison guards can have a better email system? They did that for heaps of other federal agencies, because those agencies made arguments "our staff will be so much more efficient at catching terrorists/reviewing licensing applications/whatever if we had better IT", and that convinced Congress to appropriate the money, and then the email migration funding came out of that. By contrast, BOP argues "better IT will make us more efficient at rehabilitating prisoners" and Congress goes "yawn, you think we really care about that?..."


> Besides I don't think that email and calendaring are technologies where a particular product makes a huge difference.

It might not be a huge difference, but slower email clients like Outlook and even GMail these days, increase the overhead of communications and make communication less likely. Maybe it's me, but when corporate email is fast, I'll at least open each mail for a quick scan once a day. When corporate email is slow, I'm only going to maybe scan titles.

Also, if Outlook still does things like drain my battery to death if I forget to quit before sleeping, and not work without a restart after a brief sleep with a network change, long startup time means it's unlikely to get started at all. Once that's common, corporate email is no longer a reliable communications method, and that's not great.

I could rant about email products that hide email addresses, as if nobody ever worked with two people with the same first name and last name before, or as if spams and scams didn't routinely use good sounding names when they send from someone's unintentional web to email gateway.


> Someone on Reddit claims [0] there is only one large GroupWise customer remaining – US Federal Bureau of Prisons.

You mean they have a case of vendor lock-in?


I really doubt that vendor lock-in is the reason in their case. Heaps of other organisations - including many not particularly competent public sector ones - managed to do it. Back when everyone was doing it (15-20 years ago), there was a whole cottage industry of consulting firms specialising in Novell-to-Microsoft migrations. So long as you were willing to spend sufficient $$$, and had sufficient executive buy-in, you really couldn’t go wrong. I suspect in their case the real answer must be either (1) unwilling to spend enough to successfully pull it off; or (2) never made it a priority at a sufficiently senior level (or both)

Lotus Notes came with a comprehensive development environment for custom applications - much easier to get locked-in there. GroupWise was much more spartan in its feature set, just email and calendar. It had an API but few customers ever wrote code against it - it was primarily used by third-party vendors for integration with document management systems, anti-spam/anti-virus, email archival, eDiscovery, identity management, etc - back in the day, most of the big enterprise offerings in those spaces had plugins for GroupWise. But sooner or later they almost all had plugins for Exchange too - so very rarely would that be a blocker on migrating GroupWise to Exchange

And being hooked on Microsoft might not be the best place to be-but still better than stranded on a dying platform. At least Microsoft has a clear roadmap to move to cloud (if that’s what you want to do), By the time cloud became a thing, GroupWise’s remaining install base was too small to support that


Great answer for what was likely just a pun on “lock-in” :-)


I get it now. I'm somewhat pun-impaired. An autistic trait.


Groupwise was considered a miracle at a law firm I worked for in the 1990s. We managed to link three offices together, the main office dialing up each of the branches once an hour to exchange email and documents over 9600k modems.


After reading the FAQ and Tips and Tricks, I can only imagine how amazing a modern terminal WordPerfect clone with Vim keybindings would be. I write a lot of pandoc markdown documents, vim and vscode are fine, but they are text editors not word processors.


WordPerfect 6 for Dos was my favourite word processor. Vim keybindings would make WP pretty incredible.


Also you need a template to drop over the function keys. How would that work on a modern keyboard!?

https://cdn.hackaday.io/files/1604126863067008/UI__3_WordPer...


Don’t forget a buckling spring keyboard for that ultimate bare metal experience.


Neovim with the markdown preview plugin does a really really neat job if you haven't tried it.


I began a complete clone about a year ago, but paused work when I decided to start a startup :)

It was mainly just a technical exercise, but comments like yours make me think that people would actually use it.


I don't use it personally, but from what I hear this is exactly the use case Emacs was made for.


I remember that this was the killer app for Xenix back in the day. Many organizations bought Xenix workstations because of it.


The print preview in a terminal is mind-blowing. Just learnt about Sixels (https://en.wikipedia.org/wiki/Sixel). Quite a few terminal emulators support them: https://www.arewesixelyet.com/

I wonder though which terminal with sixels Tavis used on Windows to produce the screenshots in README. Can't recognize the icon.


Image support might be simulated with sixels, I guess.

EDIT: it already does.

For a libre alternative, I suggest wordgrinder.

Or, much better, groff+mom, and entr+make to run

     groff -mom -step -k < file.groff > file.pdf
Viewers like MUPDF will update the document on file changes I think.

Help on Groff+Mom:

https://www.schaffter.ca/mom/mom-01.html


Now to plug in LLM functionality into it to supercharge your retro word-processing with word-generating courtesy of GPT.


Oh, neat. We actually ran WordPerfect for SCO Unix back in the day. This was on a dual-processor Acer / Altos system, with a whole bunch of serial terminals. That was the first Unix system I had ever purchased! Though one of the two CPUs had to be disabled because of OS stability issues.

I wanted to use Livingston Portmaster Ethernet terminal servers, but was overridden by my boss. I eventually got them anyway, because expanding the RS-485 for the serial ports was severely limited.

Overall, WP ran pretty well on the hardware of the day. With Wyse 160 terminals running at 115200 bps, it wasn't quite as fast as on a DOS PC, but still pretty snappy. It even had print preview, because the 160 was a graphics terminal.


Someone did the same with Lotus 1-2-3. Previous discussion: https://news.ycombinator.com/item?id=31455968


Same person, Tavis Ormandy.


These terminal word processors always looked attractive to me, but what is the path from this, or WordGrinder, to some mainstream document formats - that are accepted in publishing and academic settings?

From what I remember RTF is the easiest to implement from common filetypes, and openable in office suites like MS or LibreOffice. Then, in theory (unless it breaks a bunch of stuff inside), you can save it as DOCX or something. Anyone has experience with this?


> These terminal word processors always looked attractive to me, but what is the path from this, or WordGrinder, to some mainstream document formats

The early WordPerfect file format is pretty straightforward. It pretty much mirrors what you see in Reveal Codes, which is a single stream of text interspersed with special inline codes that switch things on/off (eg bold) or do something special (eg table of contents).

As it's linear you can just whizz along taking plain text as it is, converting features as you reach them, and discarding the ones you don't care about. I did it myself in C# for WP4 (DOS) files to Markdown, but RTF is also trivial to write to. Search for the filename "WP42FF.TXT" and you'll find the format online.

Incidentally, DOCX is just a ZIP file with special contents. Make a single sentence document in Word and save it out, rename the file to .ZIP and extract it. The contents are obvious when you look through them, and you can use that as a 'skeleton' and switch the text with your own. For RTF look for a copy of "RTF Pocket Guide" by Sean Burke.


Perhaps tangential, but there is a Pandoc marco [0] for this program to DOCX via RTF. But I agree, I can do all sorts of things but eventually I am often required to get a document in DOCX. Love Pandoc.

[0] https://github.com/taviso/wpunix/issues/17


WordPerfect is still used a little by lawyers.

Here's how the free law project parses it: wpd2html

https://github.com/freelawproject/doctor/blob/main/doctor/ta...


I was the high school student that used to teach the teachers how to use WordPerfect 5.1 for DOS back in the day. So many memories seeing it again


Fine. Now do PC-Write, won't someone please ..


Nerd-sniped by nostalgia. I wonder if he's looked for unsafe input handling leading to potential security issues.


It can be run in a VM with non-persistent root filesystem.


Did you ask out of serious technical concern? Or just because the main contributor seems to be a famous security researcher?


Both, but more the second one. How many people, even of those few who care enough to get this set up, would think to open some arbitrary WordPerfect document from an untrusted source, or even from anyone at all? Who would they be collaborating with who also uses WordPerfect?


I don't think this is the kind of tool used by people who collaborate and or share the working documents in a business setting anyway.

I think it mostly exist for the challenge of making it run reliably, work locally and to publish documents in pdf or printed form. If you are only using it for your own document, don't include images randomly downloaded from the internet, there is not much risk.


Dream come true for me! Yet another reason to live on the terminal full time, without starting X. Does WP save to Doc easily? I remember using WP 5-something at school on PC-DOS. It was very cool.


Very cool. Brings back memories! Though by the time WP came along I was already a solid WordStar user so customized all the keyboard shortcuts to match WordStar.


I wonder what the minimum screen size is for this. I have a couple of old low-end terminals that might get new life if I could use them with WordPerfect.


If this is just the old version of WordPerfect with some help to get it running on a modern system, I don't know why 80x24/25 would be too small... I certainly saw it running on a normal terminal back in the day.


One of the machines I'm targeting is 60 wide, and another 40. But I'll give it a shot and see what happens!


Yeah, I was afraid about that. I'd guess you might have some trouble with a narrow terminal, but it's still worth trying. I remember word perfect not having much in the way of menus (thus the keyboard templates for the commands), so it might be no big deal.


Do you really thing you would put aside your regular laptop to use an old terminal for writing?

I mean I am all for recycling but if you already own something that can do more I have very little faith that anyone would regularly fire up an old power hungry machine to do one single task unless it does it significantly better than the newer one or some kind of compatibility factor forces it like needing a particular port/interface unavailable on newer machines.


Do you really thing you would put aside your regular laptop to use an old terminal for writing?

Yes. I already do. It provides focus and a chance for me to concentrate on my writing, rather than be distracted not only by a thousand notifications and temptations (Oh, let me just switch over and see if there's anything new on HN...), but also the mild background anxiety that comes from knowing interruption is just a push notification, or a Command-Tab away.

I have very little faith that anyone would regularly fire up an old power hungry machine to do one single task

Then you have very little faith in George R.R. Martin, who isn't shy about writing on a Kaypro II.

https://www.youtube.com/watch?v=X5REM-3nWHg


I think Terry Pratchett was doing the same, at list for a time, but with WordPerfect.

But I think there is a huge difference in the fact that most of thoses authors still using old machines with old text processors[1] just follow a workflow they have been using for decades before newer computers were available. And the risk of distraction is pretty much the same if the laptop or the phone is sitting next to the dedicated machine. I don't think there are many newer authors deciding to look on ebay for old dos machines for writing.

[1] there are also musicians still using cubase on Atari ST to drive other midi instruments, I also remember a documentary showing a camping owner who wrote is management softwares decades ago and who was still running it recently on an Atari ST or Amiga 500.


Neal Stephenson also recently reconfirmed that he still uses emacs for writing. I wonder if he's using it on a vintage machine or something modern?


It worked fine on a vt220 or Wyse 60.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: