Unable to input with keyboard in ptkdb - perl

I'm using Devel::ptkdb which is provided by Debian package libdevel-ptkdb-perl. The command I used to debug is perl -dptkdb foo.pl, where foo.pl is the script being debugged. After the GUI shows up, I can use mouse to click on the buttons or menu items to control the debugging flow, but the keyboard inputs are all ignored. Any idea? Thanks a lot.

Problem resolved! It is because perl-tk can't work with input method, if you have any. So the workaround is XMODIFIERS='' perl -dptkdb foo.pl, which temporarily disable the input method for perl.

Related

CLIPS: Clear-window in CLIPSDOS.exe and tab to indent in CLIPSIDE

With CLIPS, It's possible some of the following?? (V 6.4 for Windows)
1 - Use a command like (clear-window) in the CLIPSDOS console for clear the console.
2 - Use tabs for indentation in CLIPSIDE. When i press tab, cursor goes to File menu item... how to indent?
How do people learn programming with CLIPS? I'm using a plugin for Visual Studio that helps me with the parenthesis concordance, let me use tabs to indent, and other tricks. But it has some problems, and i'm quite worried about the usability of the CLIPSDOS and CLIPSIDE interfaces to this purpose.
Thanks in advance.
In CLIPSDOS, you can use the command (system cls) to clear the screen. This will simply call out to DOS to execute a cls command.
The IDEs use standard text editing classes for the CLIPS command prompt window. Tabs appear to work correctly on the macOS IDE, but not the Windows or Java Swing IDEs, so that will need to be corrected.
While you can directly enter constructs at the command prompt, it's better to edit them in a file with your preferred text editor and then use the load command from the command prompt to load the contents of that file. The IDE supports a command history so you can use the up/down arrow keys to cycle through prior commands to avoid retyping.

Tkinter Entry to accept Unicode text?

I have a Tkinter Entry widget and a Hungarian keyboard. When I press the ő button on the keyboard, the Entry widget displays õ. ű becomes û. (I haven't had this problem in other applications since Windows 3.1.)
Edit:
I do have two language settings on this computer and when I start changing them around, the problem disappears.
What can I do to make Tkinter handle my input correctly?
It looks like it is a problem with changes to the keyboard layout, as Tk (the library under Tkinter) on Windows doesn't do anything with the lParam in the the WM_INPUTLANGCHANGE messages. That's a bug.
There is a Tk ticket here:
Tk Ticket
Unfortunately, the issue might be TkInter only.
Would it be possible to get more details and make a test using plain Tcl/Tk ?
So, download a current tcl/tk starkit or distribution and try the script:
pack [entry .e]
and look, if the problem is present there too ?
Please report to the tk ticket, anonymous login might be required there.
Can't reproduce your problem. Works for me with Tk and tkinter as well. See the Tk ticket.

show value of variable when mouse hovers over in Emacs/gdb?

I am using GDB with emacs and sometimes use GDB with DDD.
Starting version 22 (???) Emacs provides a tool-bar-mode, where you can do
the most important commands like run, next, step, up/down of stack frames in the emacs UI.
As such , I have moved away from DDD, since anyways I run most commands through command line and the sometime through the limited UI given in the tool-bar-mode.
However, the ability to hover your mouse over a variable and make the value to pop-up still seems to be missing. Does anyone know about some mode in emacs or some .el file that would allow Emacs to do the same.
This kinda goes against emacs not being a gui-ide. I can still use watchpoints/local variable buffer; but I really would like the ability to hover my mouse over some variable and see the value. Any help would be much appreciated.
gud-tooltip-mode is supposed to give you just that, I think.

My output on Emacs is showing the whole code not the output

I put my code in and compile it but then it shows up in word pad with no output just the whole code. is something wrong with Emacs?
It sounds like compile mode is misconfigured, or you're putting in the wrong compile command when it prompts you. You're on windows, where attempting to execute a file that isn't itself executable will instead launch the program registered to view or edit that type of file. You must have wordpad configured as the default viewer for the files you're editing.

Finding event handlers in source trees

So, I'm trying to implement a looping mode in the totem movie player. I would like to do this by adding a checkbox under "Edit" that turns looping on.
I'm trying to figure out what code gets called when "Edit" and the "Shuffle Mode" option under it is clicked. Is there any easy way to find where the appropriate event handler is?
My usual method of code reading (stepping through it with the debugger) didn't work because this is a GUI program, and as soon as you get to the main loop it doesn't stop until there's a breakpoint, and where to put the breakpoints is basically what I'm trying to find out.
I've been using Netbeans for this, and I should note that I can't use Eclipse.
Thank you.
The UI for Totem and the callback names for each element defined in the GtkBuilder file, data/totem.ui.
http://git.gnome.org/browse/totem/tree/data/totem.ui
This file says that the handler for the "Shuffle Mode" action is shuffle_mode_action_callback. Then you can use grep:
grep -r shuffle_mode_action_callback totem-git/src
The result of this command indicates that this function is defined in src/totem-menu.c.