Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

attempt to call method 'pull' (a nil value) #50

@LoganDark

Description

@LoganDark

I don't know if this is an OpenOS issue or an OCEmu issue, but man is probably tested to work fine in-game, so I'm filing an issue here.

If you run more with text bigger than your screen (or any command that uses more), e.g. man ls or man grep, it crashes with this error:

image

Raw text:

/bin/more.lua:33: attempt to call method 'pull' (a nil value):
stack traceback:
	/bin/more.lua:33: in function 'scroll'
	/bin/tty.lua:97: in function 'write'
	/bin/buffer.lua:167: in function </lib/buffer.lua:147>
	(...tail calls...)
	/bin/cat.lua:32: in main chunk
	(...tail calls...)
	[C]: in function 'xpcall'
	machine:791: in function 'xpcall'
	/lib/process.lua:63: in function </lib/process.lua:59>

Offending line of code:

        local _, _, _, code = original_stream:pull(nil, "key_down") -- nil timeout is math.huge

where original_stream is io.stdout.stream.

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