Multi User Teletext Live Edit Environment The advantage of Teletext is that it is easy to view. Most people already know how to do that. What is difficult is creating and publishing your own pages. Editors like wxTED give full access to all of teletext's features. edit.tf lets you create pages without even needing an installation. The difficulty is running your own service. It is hard to believe but there are people who couldn't open an SSH session to save their life. People who think that VIM is for cleaning the bathroom.
Just imagine if your teletext viewer could turn into an editor. An editor with no complicated menus or options.
A complete teletext service in your browser. It will allow you to view or edit a teletext service on a single browser page, not even a save button.
The code here is used in the online Teefax browser based viewer. The editing features are included but these are NOT promoted as they are only experimental so far.
The rest is a statement of intent. Not much of this is implemented yet...
This is what it does You can navigate pages on a service using the usual number keys or Fastext links. You can edit any page that you view (In future it will be subject to permissions).
You enter and exit editing by pressing escape. Edit mode is signalled by the page number turning yellow. Normally it will just say a page number. P123 In edit mode it becomes 123.00 Where the text is yellow and the subpage number is added. The subpage that you are editing can be selected by using the PAGE_UP and PAGE_DOWN keys.
Anything that you type will instantly appear on your viewer as you'd expect. Any change you make will instantly appear on all other viewers that happen to be on the same page. Raspberry Pi client viewers will [in the future] also update VBIT-Pi instantly.
Install express and socket.io using the node package manager: npm install express --save npm install socket.io --save npm install request --save
Keep alive The system stays alive by using PM2. The environment is Debian so this is what worked for me. sudo npm pm2@latest -g pm2 start teletextserver.js pm2 startup ubuntu pm2 save
There are a lot of print messages that are useful in debugging the system Stop the system and run it in a shell: pm2 stop teletextserver.js node teletextserver.js
Don't forget to restart the automatic service afterwards. pm2 start teletextserver.js