Page 1 of 1

Miniconsole Wrap Indent

Posted: Thu Jan 27, 2022 6:35 pm
by Yunalesca
Anyone know how to wrap indent with miniconsole like it is in the main window. I attached a screenshot.

Left = main window
Right = miniconsole

The miniconsole text code from my last post may be useful (viewtopic.php?f=6&t=23121).

Re: Miniconsole Wrap Indent

Posted: Thu Jan 27, 2022 7:50 pm
by demonnic
As in you don't want it to wrap to the size of the miniconsole, but maintain the wrapping it gets on the miniconsole instead?

Best bet would be to set the wrap width on the miniconsole to the same wrap width as you have on your main console.

Re: Miniconsole Wrap Indent

Posted: Fri Jan 28, 2022 12:09 am
by Yunalesca
I mean't I want the miniconsole to indent after the first line wraps. (--Wrapping to
second line--) Like this. I would like the indent to end after the next text segme
nt is sent to the queue. I attached a screenshot for an example.

Re: Miniconsole Wrap Indent

Posted: Fri Jan 28, 2022 1:02 am
by demonnic
https://wiki.mudlet.org/w/Manual:Lua_Fu ... WrapIndent this is the function you'll want.
Code: [show] | [select all] lua
setWindowWrapIndent("All", 1) -- or however many spaces you want it indented

Re: Miniconsole Wrap Indent

Posted: Fri Jan 28, 2022 5:52 pm
by Yunalesca
setWindowWrapIndent("main", 10)
setWindowWrapIndent("mainconsole_container", 10)
setWindowWrapIndent("All", 1)

I tried these but they don't indent at all or have any effect on my main window or miniconsole. I also messed around with autoWrap and wrapAt but doesn't do anything either.

Re: Miniconsole Wrap Indent

Posted: Fri Jan 28, 2022 6:11 pm
by demonnic
hmm, ok, firstly I believe this only wraps the first line if it's wrapped, and not the following lines. And secondly it doesn't seem to work on miniconsoles, for some reason. Though I thought it did