grub4dos icon indicating copy to clipboard operation
grub4dos copied to clipboard

echo -P:XXYY does not accept numbers larger than 99

Open steve6375 opened this issue 3 years ago • 10 comments

In 1024x768 mode we have 128 columns, so cannot position past column 99

image

suggest echo also accepts two-digit hex numbers using -p: instead of -P: ??? e.g. echo -p:0a6e

steve6375 avatar Oct 19 '22 10:10 steve6375

have a try. clear ;; echo -P:0811 1234567890 clear ;; echo -P:0x080x0b 1234567890 grldr.rar.txt

yaya2007 avatar Oct 20 '22 12:10 yaya2007

If get a hex value less than 16 using set /A then we get values of 0xb for instance. Can it cope with 3 character values? It is more difficult to change 0xb to 0x0b which is why I suggested using -p

steve6375 avatar Oct 20 '22 13:10 steve6375

Adding - p: cannot simply solve the problem. The key is to separate XXYY.

-P:0xf0xf -P:0xf-0xf -P:0x110xf -P:0x11-0x11 grldr.rar.txt

yaya2007 avatar Oct 21 '22 00:10 yaya2007

Can't just add a hyphen ???

image

-P:0x12-0x12 not working ?

image

steve6375 avatar Oct 21 '22 08:10 steve6375

It is not a connector, but a negative number sign.

yaya2007 avatar Oct 21 '22 09:10 yaya2007

It is not a connector, but a negative number sign.

yaya2007 avatar Oct 21 '22 09:10 yaya2007

sorry, you said 'The key is to separate XXYY' so I assumed it was a separator!

so cannot have hex followed by decimal?

e.g.

echo -P:0x505 HELLO

does not work.

steve6375 avatar Oct 21 '22 09:10 steve6375

Either all decimal or all hexadecimal

yaya2007 avatar Oct 21 '22 09:10 yaya2007

OK. maybe help text could be changed image

XX and YY are both 2 digit decimal or both 3/4 character hex. Can precede with - sign for position from end.

Looks good :-)

steve6375 avatar Oct 21 '22 10:10 steve6375

adopt

yaya2007 avatar Oct 21 '22 10:10 yaya2007