"Keep Commands on Prompt line" not working v.4.14

Posted by Meh2u on Thu 29 Oct 2009 10:02 PM — 18 posts, 77,532 views.

#0
There seems to be an issue with the function, 'Keep commands on prompt line'. I have clicked on the option, saved, and tested, and no go. I have also uninstalled and downloaded the program. I have also tryed it on different worlds. I assume I am just missing something, but in the past I have had no trouble.
Netherlands #1
It doesn't work together with "Convert IAC EOR/GA to new line" turned on, since it turns the prompt into a plain line. That is probably what you are having trouble with.

Not too long ago, I asked in another subforum to have it fixed somehow, but so far I was the only one with that wish.
Australia Forum Administrator #2
Yes, that option means a new line has already been started. With the "Convert IAC EOR/GA to new line" turned off, then if possible, a command is appended to the current line.

Once a new line is started, triggers etc. are processed, and it doesn't want to "un-start" the new line.
#3
I have confirmed that the convert IAC EOR/GA to new line, is not on. I still have the initial problem, so should I post this same question in the bug section?
Amended on Fri 30 Oct 2009 05:51 AM by Meh2u
Australia Forum Administrator #4
Let's leave it here for now, since we got this far. ;)

I checked again, and with "keep commands on prompt line" checked, and "convert IAC EOR/GA to new line" unchecked, it works as advertised:


<24hp 145m 110mv> <#21036> sigh
You sigh.

<24hp 145m 110mv> <#21036> dance
Feels silly, doesn't it?


However maybe you have your prompt configured (or it does it anyway) to add a newline after the prompt.

You could try turning on Edit menu -> "debug packets". In my case I saw something like this:


Incoming packet: 13 (90 bytes) at Friday, October 30, 2009, 11:52:53 AM

.[0;36mYou sigh.   1b 5b 30 3b 33 36 6d 59 6f 75 20 73 69 67 68 2e
.....[0m.[0;37m<   0d 0a 0d 0a 1b 5b 30 6d 1b 5b 30 3b 33 37 6d 3c
.[1;33m24hp .[1;   1b 5b 31 3b 33 33 6d 32 34 68 70 20 1b 5b 31 3b
36m145m .[1;32m1   33 36 6d 31 34 35 6d 20 1b 5b 31 3b 33 32 6d 31
10mv.[0;37m> <#2   31 30 6d 76 1b 5b 30 3b 33 37 6d 3e 20 3c 23 32
1036> .[0m         31 30 33 36 3e 20 1b 5b 30 6d

Sent  packet: 11 (7 bytes) at Friday, October 30, 2009, 11:52:54 AM

dance..            64 61 6e 63 65 0d 0a


Note now at the end of packet 13 there was no newline (that is hex 0A). This lets it append "dance" to the end of the prompt. If there was a newline (eg. 0a or 0d 0a) then a new line has already started.
Australia Forum Administrator #5
Also, the latest version (at present) is 4.43, not 4.14. You may get better results by downloading the latest version:

http://www.gammon.com.au/forum/?id=9659
#6
Ok, I used the 'debug packets' and found this when I would look or type anything into the command prompt.


Sent packet: 208 (3 bytes) at Thursday, October 29, 2009, 11:52:57 PM

l.. 6c 0d 0a

Which means that every time I type I am getting a new line?
So, what can I do to correct this? Also I checked and I do have the latest version 4.43. My bad.
Australia Forum Administrator #7
That is the packet with "l" in it.

I want to see the packet with the prompt in it.
#8
Sorry not as versed in the actual function of the program. I just pushed enter with nothing in the prompt, I think that gives the desired results.


Sent  packet: 462 (2 bytes) at Friday, October 30, 2009, 11:56:47 PM

..                 0d 0a

Incoming packet: 1293 (42 bytes) at Friday, October 30, 2009, 11:56:48 PM

.[34m.[1;37m1661   1b 5b 33 34 6d 1b 5b 31 3b 33 37 6d 31 36 36 31
.[2;37;0m.[34m .   1b 5b 32 3b 33 37 3b 30 6d 1b 5b 33 34 6d 20 1b
[2;37;0mÿù         5b 32 3b 33 37 3b 30 6d ff f9

Sent  packet: 463 (2 bytes) at Friday, October 30, 2009, 11:56:49 PM

..                 0d 0a


Here is one of me doing something, not sure it it makes a difference.



Sent  packet: 468 (6 bytes) at Saturday, October 31, 2009, 12:03:28 AM

jump..             6a 75 6d 70 0d 0a

Incoming packet: 1308 (69 bytes) at Saturday, October 31, 2009, 12:03:28 AM

.[1;37mYou jump.   1b 5b 31 3b 33 37 6d 59 6f 75 20 6a 75 6d 70 2e
.[2;37;0m...[34m   1b 5b 32 3b 33 37 3b 30 6d 0d 0a 1b 5b 33 34 6d
.[1;37m1661.[2;3   1b 5b 31 3b 33 37 6d 31 36 36 31 1b 5b 32 3b 33
7;0m.[34m .[2;37   37 3b 30 6d 1b 5b 33 34 6d 20 1b 5b 32 3b 33 37
;0mÿù              3b 30 6d ff f9
Amended on Sat 31 Oct 2009 06:13 AM by Nick Gammon
Australia Forum Administrator #9
Right, well apart from some formatting codes, I see your prompt as being simply "1661". Is that your prompt?

I also don't see a newline at the end of the line, but I do see hex "ff f9" which is the IAC/GA.

So when I had "convert IAC/GA to newlines" off, and "keep prompt on the same line" on, on that packet data, it put the prompt on the same line as the "1661" line.
Amended on Sat 31 Oct 2009 06:21 AM by Nick Gammon
#10
Is there a way I can edit the ica/ga to be off, cause its off in the menu, and the same problem occurs.
Amended on Sat 31 Oct 2009 08:20 AM by Meh2u
Australia Forum Administrator #11
Are we really looking at your prompt packet? Was your prompt "1661" in this example? What is that? Your HP or something?

Do you have any plugins installed? Plugins may modify the behaviour of the client, so we may be fighting a plugin here.
#12
Yes 1661 is my hp, because all I did was press enter. I didnt put any thing in the line, as far as i know i dont have any plugins either.
Australia Forum Administrator #13
Hmmm, well it seems to work here. Can you please open your world file in a text editor (eg. Notepad) and copy the lines between <world> and </world>, and paste them here?

Delete the lines with your player name password in them, i.e.


password="<something>"
player="<something>"


It should look something like this:


<world
   muclient_version="4.43"
   world_file_version="15"
   date_saved="2009-10-27 11:00:49"

   auto_say_override_prefix="-"
   auto_say_string="say "
   chat_name="Name-not-set"
   command_stack_character=";"
   id="8340a3287a2b0aa6f764bcf1"
   input_font_name="FixedSys"
   mapping_failure="Alas, you cannot go that way."
   name="mud.name.here"
   new_activity_sound="(No sound)"
   output_font_name="FixedSys"
   password_base64="y"
   script_editor="notepad"
   script_language="Lua"
   site="mud.site.address.here"
   spam_message="look"
   speed_walk_prefix="#"
   terminal_identification="mushclient"

   arrows_change_history="y"
   auto_pause="y"
   auto_resize_minimum_lines="1"
   auto_resize_maximum_lines="20"
   chat_foreground_colour="red"
   chat_background_colour="black"
   chat_port="4050"
   confirm_before_replacing_typing="y"
   confirm_on_paste="y"
   confirm_on_send="y"
   connect_method="2"
   detect_pueblo="y"
   display_my_input="y"
   echo_hyperlink_in_output_window="y"
   edit_script_with_notepad="y"
   enable_aliases="y"
   enable_beeps="y"
   enable_scripts="y"
   enable_timers="y"
   enable_triggers="y"
   enable_trigger_sounds="y"
   history_lines="1000"
   hyperlink_adds_to_command_history="y"
   hyperlink_colour="#0080FF"
   indent_paras="y"
   input_background_colour="white"
   input_font_height="9"
   input_font_weight="400"
   input_text_colour="black"
   keypad_enable="y"
   line_information="y"
   log_output="y"
   max_output_lines="5000"
   mud_can_change_link_colour="y"
   mud_can_change_options="y"
   note_text_colour="#040000"
   output_font_height="9"
   output_font_weight="400"
   paste_delay_per_lines="1"
   pixel_offset="1"
   port="4000"
   proxy_port="1080"
   send_file_delay_per_lines="1"
   send_mxp_afk_response="y"
   show_connect_disconnect="y"
   show_italic="y"
   show_underline="y"
   spam_line_count="20"
   tab_completion_lines="200"
   underline_hyperlinks="y"
   unpause_on_send="y"
   use_custom_link_colour="y"
   use_default_input_font="y"
   use_default_output_font="y"
   warn_if_scripting_inactive="y"
   wrap="y"
   wrap_column="80"
   write_world_name_to_log="y"
   > <!-- end of general world attributes -->

</world>


#14
Here is the string of values you asked for, minus my name and password.

<world
muclient_version="4.43"
world_file_version="15"
date_saved="2009-11-01 17:35:41"

auto_say_override_prefix="-"
auto_say_string="say "
chat_name="Name-not-set"
command_stack_character=";"
id="3f8595c95233ed7d2b85b47c"
input_font_name="Fixedsys"
mapping_failure="Alas, you cannot go that way."
name="AOD Temp"
new_activity_sound="(No sound)"
output_font_name="FixedSys"
password_base64="y"


script_editor="notepad"
script_language="Lua"
site="129.241.168.214"
spam_message="look"
speed_walk_prefix="#"
terminal_identification="mushclient"

arrows_change_history="y"
auto_pause="y"
auto_resize_minimum_lines="1"
auto_resize_maximum_lines="20"
chat_foreground_colour="red"
chat_background_colour="black"
chat_port="4050"
confirm_before_replacing_typing="y"
confirm_on_paste="y"
confirm_on_send="y"
connect_method="2"
detect_pueblo="y"
echo_colour="11"
echo_hyperlink_in_output_window="y"
edit_script_with_notepad="y"
enable_aliases="y"
enable_beeps="y"
enable_scripts="y"
enable_timers="y"
enable_triggers="y"
enable_trigger_sounds="y"
history_lines="1000"
hyperlink_adds_to_command_history="y"
hyperlink_colour="#0080FF"
indent_paras="y"
input_background_colour="white"
input_font_height="9"
input_font_weight="400"
input_text_colour="black"
keep_commands_on_same_line="y"
keypad_enable="y"
line_information="y"
log_output="y"
max_output_lines="5000"
mud_can_change_link_colour="y"
mud_can_change_options="y"
note_text_colour="#040000"
output_font_height="9"
output_font_weight="400"
paste_delay_per_lines="1"
pixel_offset="1"
port="5000"
proxy_port="1080"
save_world_automatically="y"
send_file_delay_per_lines="1"
send_mxp_afk_response="y"
show_connect_disconnect="y"
show_italic="y"
show_underline="y"
spam_line_count="20"
tab_completion_lines="200"
underline_hyperlinks="y"
unpause_on_send="y"
use_custom_link_colour="y"
use_default_input_font="y"
use_default_output_font="y"
warn_if_scripting_inactive="y"
wrap_column="80"
write_world_name_to_log="y"
> <!-- end of general world attributes -->

</world>
Amended on Mon 02 Nov 2009 04:09 AM by Meh2u
Australia Forum Administrator #15
You are not echoing your commands at all, which is why they are not appearing on the same line as the prompts.

In the Commands configuration, check the box next to "Echo My Input In".

When I did that, what I typed appeared in the brown colour selected, on the same line as the most recent prompt.
Australia Forum Administrator #16
I made a new character Filildan on that MUD - if anyone is wondering why he didn't play for long, I stopped once I saw what was happening.
#17
Thank you Nick Gammon.