Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

repl autocomplete broken when output is socket #8644

@smilingthax

Description

@smilingthax
repl.start({
  prompt: 'remote> ',
  input: sock,
  output: sock,  // (replace this with process.stdout and autocomplete works fine)
  terminal: true
});

Problem: Tab-autocomplete will only display empty lines. (Tested on 0.10.32 win, 0.10.29 linux).
Workaround: Set sock.columns=80;

Probable cause:
https://github.com/joyent/node/blob/master/lib/readline.js#L414
results in minRows = 0, because maxColumns=Infinity (via #L382, from #L158)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions