<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/kconfig/lxdialog/inputbox.c, branch v4.5</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.5</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2014-06-10T12:00:53Z</updated>
<entry>
<title>kbuild: trivial - use tabs for code indent where possible</title>
<updated>2014-06-10T12:00:53Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.m@jp.panasonic.com</email>
</author>
<published>2014-06-10T10:08:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bb66fc67192bbd406fe9c22033f1bbbf3e7ec621'/>
<id>urn:sha1:bb66fc67192bbd406fe9c22033f1bbbf3e7ec621</id>
<content type='text'>
Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>mconf: use function calls instead of ncurses' variables LINES and COLS</title>
<updated>2013-06-18T21:58:58Z</updated>
<author>
<name>Dirk Gouders</name>
<email>dirk@gouders.net</email>
</author>
<published>2013-05-12T10:30:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4f2de3e19983dafca264b672152b36e4962ca1c3'/>
<id>urn:sha1:4f2de3e19983dafca264b672152b36e4962ca1c3</id>
<content type='text'>
According to the documentation [1], LINES and COLS are initialized by
initscr(); it does not say anything about the behavior when windows are
resized.

Do not rely on the current implementation of ncurses that updates
these variables on resize, but use the propper function calls to get
window dimensions.

init_dialog() could make use of the variables, but for the sake of
consistency we do not change it's current use of the macro getmaxyx().

[1] ncurses(3X)

Signed-off-by: Dirk Gouders &lt;dirk@gouders.net&gt;
Tested-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Reviewed-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: Yann E. MORIN &lt;yann.morin.1998@free.fr&gt;
</content>
</entry>
<entry>
<title>kconfig/lxdialog: Add definitions for mininimum (re)size values</title>
<updated>2013-06-16T09:09:56Z</updated>
<author>
<name>Sedat Dilek</name>
<email>sedat.dilek@gmail.com</email>
</author>
<published>2013-06-15T09:07:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=851f665725581d02d48ffbca50240cda44d698d4'/>
<id>urn:sha1:851f665725581d02d48ffbca50240cda44d698d4</id>
<content type='text'>
Commit c8dc68ad0fbd ("kconfig/lxdialog: support resize") added support
for resizing, but forgot to collect all hardcoded values at one single
place.

Also add a definition for the check for a minimum screen/window size
of 80x19.

[ ChangeLog v3:
  * Rename MENU_{HEIGTH,WIDTH}_MIN -&gt; MENUBOX_{HEIGTH,WIDTH}_MIN
  ChangeLog v2:
  * Rename WIN_{HEIGTH,WIDTH}_MIN -&gt; WINDOW_{HEIGTH,WIDTH}_MIN
  * Mention the check for a minimum screen/window size in the changelog
  * Add a comment above the block of new definitions ]

Signed-off-by: Sedat Dilek &lt;sedat.dilek@gmail.com&gt;
Acked-by: Wang YanQing &lt;udknight@gmail.com&gt;
Tested-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Reviewed-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
</content>
</entry>
<entry>
<title>menuconfig:inputbox: support navigate input position</title>
<updated>2012-12-25T22:42:37Z</updated>
<author>
<name>Wang YanQing</name>
<email>udknight@gmail.com</email>
</author>
<published>2012-12-17T14:38:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=87727d453b4677a21312712c8a4bb5dcd81a1ebe'/>
<id>urn:sha1:87727d453b4677a21312712c8a4bb5dcd81a1ebe</id>
<content type='text'>
This patch add support navigate input position *inside* the input
field with LEFT/RIGHT, so it is possible to modify the text in place.

Signed-off-by: Wang YanQing &lt;udknight@gmail.com&gt;
Tested-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
</content>
</entry>
<entry>
<title>kconfig: some small fixes</title>
<updated>2010-04-14T13:34:18Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2010-04-14T03:44:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4280eae0990190d190dfa7dab9bca480215d5b19'/>
<id>urn:sha1:4280eae0990190d190dfa7dab9bca480215d5b19</id>
<content type='text'>
- fix a typo in documentation
- fix a typo in a printk on error
- fix comments in dialog_inputbox()

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>kconfig: reversed borderlines in inputbox</title>
<updated>2008-04-28T20:27:26Z</updated>
<author>
<name>Roel Kluin</name>
<email>12o3l@tiscali.nl</email>
</author>
<published>2008-03-20T20:30:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=79d6e539df8260fe5d12a2117494aaf80ca1b3e8'/>
<id>urn:sha1:79d6e539df8260fe5d12a2117494aaf80ca1b3e8</id>
<content type='text'>
Fix reversal of dlg.border.atr and dlg.dialog.atr for draw_box()
Makes the inputbox look like expected

Signed-off-by: Roel Kluin &lt;12o3l@tiscali.nl&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kconfig: gettext support for lxdialog</title>
<updated>2008-01-28T22:14:39Z</updated>
<author>
<name>EGRY Gabor</name>
<email>gaboregry1@t-online.hu</email>
</author>
<published>2008-01-11T22:42:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=75c0a8a55c31c0a21f7e9e64bc45e87e228a98f6'/>
<id>urn:sha1:75c0a8a55c31c0a21f7e9e64bc45e87e228a98f6</id>
<content type='text'>
Gettext support for lxdialog.

Signed-off-by: Egry Gabor &lt;gaboregry1@t-online.hu&gt;
Reviewed-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Cc: Roman Zippel &lt;zippel@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>kconfig/lxdialog: support resize</title>
<updated>2006-09-30T09:19:20Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-29T20:48:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c8dc68ad0fbd934e78e913b8a8d7b45945db4930'/>
<id>urn:sha1:c8dc68ad0fbd934e78e913b8a8d7b45945db4930</id>
<content type='text'>
In all dialogs now properly catch KEY_RESIZE and take proper action.
In mconf try to behave sensibly when a dialog routine returns
-ERRDISPLAYTOOSMALL.

The original check for a screnn size of 80x19 is kept for now.
It may make sense to remove it later, but thats anyway what
much text is adjusted for.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kconfig/lxdialog: let &lt;ESC&gt;&lt;ESC&gt; behave as expected</title>
<updated>2006-09-30T09:19:20Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-28T21:57:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f3cbcdc955d0d2c8b4c52d6b73fc536b01b68c64'/>
<id>urn:sha1:f3cbcdc955d0d2c8b4c52d6b73fc536b01b68c64</id>
<content type='text'>
&lt;ESC&gt;&lt;ESC&gt; is used to step one back in the dialogs.
When lxdialog became built-in pressing &lt;ESC&gt; once would cause one step back
and pressing &lt;ESC&gt;&lt;ESC&gt; would cause two steps back.
This patch - based on concept from Roman Zippel &lt;zippel@linux-m68k.org&gt; -
makes one &lt;ESC&gt; a noop and pressing &lt;ESC&gt;&lt;ESC&gt; will cause one step backward.

In addition the final yes/no dialog now has the option to go back to the
the kernel configuration. So if you get too far out you can now go back
to configuring the kernel without saving and starting all over again.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kconfig/menuconfig: lxdialog is now built-in</title>
<updated>2006-09-30T09:19:19Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-27T20:10:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2982de6993e6d9944f2215d7cb9b558b465a0c99'/>
<id>urn:sha1:2982de6993e6d9944f2215d7cb9b558b465a0c99</id>
<content type='text'>
lxdialog was previously called as an external program causing screen
to flicker when used. With this patch lxdialog is now built-in.
It is loosly based om previous work by:  Petr Baudis &lt;pasky@ucw.cz&gt;

Following is a list of changes:
o Moved build of dialog routings to kconfig Makefile
o menubox + checklist uses a new item list to hold all menu items
o in util.c implmented helper function to deal with item list
o menubox now uses parameters to save scroll state (avoids temp file)
o textbox now get text to be displayed as parameter and not a file
o make sure to properly delete subwin's before main windows
o killed unused files: lxdialog.c msgbox.c
o modified return value for ESC to match direct calling
o in a few places the code has been adjusted to 80 char wide
o in textbox a small refactoring was made to make code remotely readable
o in mconf removed all unused stuff (functions/variables)

Following is a list of know short comings:
a) pressing ESC twice will be interpreted as two ESC presses
b) resize does not work. menuconfig needs to be restarted to be adjusted

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
</feed>
