Skip to content

zmachine_door only sending LF to client #693

@Kaiede

Description

@Kaiede

Describe the Bug
The zmachine_door interpreter seems to be spitting out LF rather than CRLF. I've been using my own frotz script for a while (since way back on 0.0.14) and decided to give it a go on the latest. Unfortunately, the output was not correct.

So I suspect that there needs to be something added to ensure the server sends proper line-endings.

To Reproduce
Create a door that uses the zmachine_door module, run it. I used moonmist.z5 for this, and was testing with telnet on a local network. (I need to pester MuffinTerm to properly support SSH at some point)

Expected Behavior
Output uses CRLF for terminals to behave probably.

Actual Behavior
Output seems to only spit out LF.

Screenshots
Image

Environment

  • I am using Node.js v14.x LTS or higher
  • npm install or yarn reports success
  • Actual Node.js version (node --version): v22.22.2 (Fedora 44 latest)
  • Operating system (uname -a on *nix systems): Fedora CoreOS 44.20260419.3.1 (custom image), Ubuntu 22.04.5 LTS
  • Revision (git rev-parse --short HEAD): d00f48d
  • Any additional relevant information about your setup

I use a custom CoreOS image for the VM which runs the BBS, and there are a number of additional packages that gets baked in that makes the whole thing work (shared below). But it also reproduces on the Ubuntu 22.04 VM that has been hosting things for the last few years.

  # Doors
  dosemu2
  frotz
  # Trade Wars Game Server
  icewm
  tigervnc-server
  wine
  # Enigma
  arj
  dos2unix
  lhasa
  lrzsz
  nodejs
  p7zip
  poppler-utils
  unzip
  zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions