1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Change PJL command termination from LF to CR/LF

The PJL specification (HP publication 5021-0380) makes the CR optional
but apparently it is required by some implementations. Fixes #2182
This commit is contained in:
nnposter
2020-11-14 23:29:05 +00:00
parent eb029afd7c
commit f4e19b17ea

View File

@@ -45,7 +45,7 @@ action = function(host, port)
local statusmsg --stores the PJL command to get the printer's status
local response --stores the response sent over the network from the printer by the PJL status command
statusmsg="@PJL INFO STATUS\n"
statusmsg="@PJL INFO STATUS\r\n"
local rdymsg="" --string containing text to send to the printer.
local rdymsgarg="" --will contain the argument from the command line if one exists