Questions tagged [editline]

27 questions
1
vote
3 answers

How to store time greater than 24 Hours in Mysql?

I need to create a column (say idletime) that will store time value having hours smaller or bigger than 24. When i try to insert such values bigger than 24 (For example '80:00:00', '129:23:12', etc) , am getting the following error…
1
vote
0 answers

Display deletable characters in a terminal (using libedit/editline or readline)

I am currently using libedit for "readline"-functionallity, so far it works really well, but I would like to display characters (spaces) after the prompt which are deleteable by the user. Similiar to IPython: As you can see there are 4 additional…
dav1d
  • 5,917
  • 1
  • 33
  • 52
0
votes
0 answers

How can I check for letters in a called array?

I have a code but it doesn't work as I want. I need to call (or print) the initial letter of each element in the array as uppercase. Or alternatively: automatically converting the first letter of every word I type in the text box to uppercase will…
cvaqabond
  • 23
  • 3
0
votes
0 answers

pyQt 5 editline input size

I'm new to pyQt and couldn't find an answer online. I have created a form, and in one edit line I want the input box to be bigger and allow longer text. the only option that worked for me was the following: window.line.setFixedHeight(200) But I'm…
keren
  • 29
  • 2
0
votes
1 answer

How to make libreadline or libedit cope with SIGALRM?

I am writing a Linux program that interacts with some custom hardware via GPIO lines. It uses a timer periodically delivering SIGALRM in order to manage the timing of these interactions, and there is quite some work performed within the signal…
Edgar Bonet
  • 3,416
  • 15
  • 18
0
votes
1 answer

Edit a few lines of uncompressed PDF in Python

I want to edit a few lines in an uncompressed pdf. I found a similar problem but since I need to scan the file a few times to get the exact line positions I want to change this doesn't really suit (and the pure number of RegEx matches are more than…
0
votes
2 answers

QT c++: drop in multi line edite

Im beginner in qt and i do my first project. I am encountering a problem. I put somes edit line in a scroll area. All of this edit text should countains path to files. To make this app more userfriendly i decided to implement a drag and drop. By…
antoine
  • 3
  • 5
0
votes
0 answers

In there a convenient way to have multiline input in libedit/editline

Using libedit/editline, and trying to figure out a good way to do multiline input/editing. The target is an SQL client, where queries will often span multiple lines and terminate with ;. I can call el_gets, and process each line of input, stopping…
Chris Leishman
  • 1,777
  • 13
  • 19
0
votes
1 answer

Editline Errors

I am new to the C language and keep getting this error whenever I compile my C code with the command cc prompt.c. I get this error: Undefined symbols for architecture x86_64: "_add_history", referenced from: _main in prompt-66f61f.o "_readline",…
TheBestCoder
  • 43
  • 1
  • 8
0
votes
1 answer

Can GTK work with a readline like library?

Is it possible for a graphical GTK program, to also have a "command line interface" like those provided by GNU readline, editline or linenoise? How to deal with blocking gtk_main() calls, and blocking loop steps from those libraries?
azmeuk
  • 4,026
  • 3
  • 37
  • 64
0
votes
1 answer

Python/editline on OS X: £ sign seems to be bound to ed-prev-word

On Mac OS X I can’t enter a pound sterling sign (£) into the Python interactive shell. * Mac OS X 10.5.5 * Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) * European keyboard (£ is shift-3) When I type shift-3 in the Python interactive shell, I…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
-1
votes
1 answer

Why the editText doesn't show the user input in Python class?

I have a Python class that display a window that includes 2 text filed and 2 buttons. Where the user enter a string in the first edit text and on click on the (open button) the second edit text will display the user input. The problem is that on the…
Pyt Leb
  • 99
  • 2
  • 10
1
2