[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-09-28 Thread Anthony Sottile


New submission from Anthony Sottile :

https://linux.die.net/man/3/set_escdelay
https://linux.die.net/man/3/set_tabsize

I'd like to help with this, but I don't even know where to start with 
argumentclinic -- any points would be greatly appreciated

presumably I should also add getters for these as well to retrieve the global 
variable from the curses side?

--
components: Extension Modules
messages: 353477
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: curses: add `set_tabsize` and `set_escdelay`
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-09-28 Thread Ammar Askar


Ammar Askar  added the comment:

> I'd like to help with this, but I don't even know where to start with 
> argumentclinic -- any points would be greatly appreciated

Are you asking about argumentclinic in general or something specific to this 
bug? If it's something specific feel free to ignore the following:

You can find a basic tutorial on argumentclinic here 
https://docs.python.org/3/howto/clinic.html#basic-concepts-and-usage

Essentially, you'll be adding something along these lines into _cursesmodule.c

/*[clinic input]
_curses.set_escdelay
size: int
bla bla description for size.
/

One line description.

Extended description. Spanning over
multiple lines.
[clinic start generated code]*/

after which you can run `python3 Tools/clinic/clinic.py _cursesmodule.c` which 
will update the file and place the stub for the method in there.

--
nosy: +ammar2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-10-26 Thread Anthony Sottile


Change by Anthony Sottile :


--
keywords: +patch
pull_requests: +16467
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16938

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-10-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

There are also ncurses functions get_tabsize() and get_escdelay(). In other 
implementations they can be modeled by returning the TABSIZE and ESCDELAY 
global variables.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-10-29 Thread Anthony Sottile


Anthony Sottile  added the comment:

ah, I'll add those too -- I can do that in the current PR

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-10-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset b32cb97bce472dad337c6b2f071883f6234e21d8 by Serhiy Storchaka 
(Anthony Sottile) in branch 'master':
bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. 
(GH-16938)
https://github.com/python/cpython/commit/b32cb97bce472dad337c6b2f071883f6234e21d8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38312] curses: add `set_tabsize` and `set_escdelay`

2019-10-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com