Dbx Process I/O Window and CURSES problems

Does anybody know how to make CURSES based application to work properly when using Studio 11 dbx �Process I/O� Output Window?
Some characters are scrambled on output and the worst part is that input �arrows� from keyboard and some other keys will not return from �wgetch(win) curses function call. �keypad()� is set to TRUE.
The application works fine running under xterm with TERM=vt100 settings
It was also running fine under Forte IDE debugger.
Thanks

Ivan,
This is promised CURSES code. It is very quick and simple but it will demonstrate issues I was describing. There is also another issue � which you will notice very soon. If you try to rerun the process the screen will not reset. You can get very odd behavior.
Regarding the terminal I would probably prefer to have it outside the IDE.
Thanks
Code was compiled with: cc �g �l curses
#include <stdlib.h>
#include <stdio.h>
#include <termios.h>
#include <curses.h>
#include <unistd.h>
int main()
{WINDOW *win1;
int key;
char ch;
char *s;
  initscr();
  clear();
  refresh();
  win1 = newwin(20,50,0,0);
  scrollok(win1,1);
  keypad(win1,1);
  werase(win1);
  box(win1,'*','*');
  wrefresh(win1);
  cbreak();
  noecho();
  do {
    mvwaddstr(win1,2,3,"CTRL A - quit:");
    mvwaddstr(win1,3,3,"Enter Symbol:");
    key = wgetch(win1);
    mvwaddstr(win1,4,3,"You Entered :");
    ch = (char)key;
    switch (key) {
      case KEY_UP:
        waddstr(win1,"KEY_UP   ");
        break;
      case KEY_DOWN:
        waddstr(win1,"KEY_DOWN ");
        break;
      case KEY_LEFT:
        waddstr(win1,"KEY_LEFT ");
        break;
      case KEY_RIGHT:
        waddstr(win1,"KEY_RIGHT");
        break;
      case KEY_ENTER:
        waddstr(win1,"KEY_ENTER");
        break;
      default:
        if ( ch == '\001' )
          break;
        else if ( isalpha(ch) ) {
          s = "         ";
          s[0] = ch;
else
s = "another ";
waddstr(win1,s);
break;
} while ( ch != '\001' );
endwin();
exit(0);
}

Similar Messages

  • Application switching/windows and titlebar problem

    Hi,
    Apologies if this isn't the best place to post this, but it's a problem that relates to switching between applications in OS X, and I haven't yet found an answer through Director forums.
    So... I am working on a (cross-platform) Director project that has to link to and open Word DOCs. I have a problem in OS X whereby when a DOC is opened, the Mac does not seem to be switching properly into Word. What happens is: click thumbnail (running handler to open DOC, using Buddy API xtra); Word starts to open the DOC; DOC window appears in front of projector Window, but the Mac titlebar seems to 'stick' in the projector. I can edit the DOC, use keyboard commands to save etc., but no menus are visible due to the 'ProjectorName.osx' title bar. I can switch to Word with Apple-tab, but not by clicking in the Word window(s).
    A few extra notes:
    • The projector resizes the screen to 800x600, but even with this feature disabled the problem persists.
    • There appears to be a very strong link between creating a Full Screen projector and whether the problem manifests itself or not. All projectors created with Full Screen checked now have the problem (along with a few non-Full Screen). Unfortunately I need to lose any title/menu bar, therefore need to use Full Screen projectors.
    • The problem has just arisen; essentially identical projectors (ie. differences are only in graphics) have run OK.
    • We have used a couple of different xtras to open the files, for reasons unconnected with this issue. However we have been using BuddyAPI for a while, so I am reasonably sure that the problem is not related to this.
    • Ensuring that unnecessary apps are closed, to ensure plenty of free memory, makes no difference.
    Paul

    > now my oracle is up but not able to login in sap.
    Your system is hosed up.
    > one is : oraclesri102isql*plus service is not getting started.
    That service is not important for a SAP system.
    Chintan,
    it is not supported to make changes to a domain structure after you installed the system (see the given note). That's why your SAP system is not coming up, all filesystem-, registry and user permissions are invalid.
    The only way to resurrect your system is to reinstall it.
    Configure first the operating system (as standalone or in a domain) - and then install the SAP system, not vice versa.
    Markus

  • Sharing folders in 10.8.3 to windows and macs PROBLEMS

    I'm tryng to share folders from an 10.8.3 imac to users in my LAN (using bot mac and windows) I'm having this problem:
    1) Mac users can access the share using afp:// but
    when they create new folders the permission are: drwxr-xr-x so no other can write those folders
    2) PC users can access the share using smb:// but
    when they create new folders the permission are: drwx------ so no other can read/write/execute
    all user belong to the same group and the shared folders are owned by that group
    I have create a file /etc/launchd.conf with umask 002 reboot but nothing has changed
    I THOUGHT THAT MAKING SHARES IN MAC SHOULD BE EASY BUT IT SEEMS SOO HARD :-)

    I'm tryng to share folders from an 10.8.3 imac to users in my LAN (using bot mac and windows) I'm having this problem:
    1) Mac users can access the share using afp:// but
    when they create new folders the permission are: drwxr-xr-x so no other can write those folders
    2) PC users can access the share using smb:// but
    when they create new folders the permission are: drwx------ so no other can read/write/execute
    all user belong to the same group and the shared folders are owned by that group
    I have create a file /etc/launchd.conf with umask 002 reboot but nothing has changed
    I THOUGHT THAT MAKING SHARES IN MAC SHOULD BE EASY BUT IT SEEMS SOO HARD :-)

  • Windows And Oracle Problem

    Hi...
    Our server is Windows server 2003 64 bit on which SAP IDES 6.0 is there.
    its working fine. then we have remove Domin through RUN>DCPROMO command so all my user has been removed so i have again created windows users.
    after that all my service working fine with Dispatcher.
    but when i am trying to logon with SAPLOGON its giving "Application server shutdown" and then Dispatcher service is getting stop.
    then i am trying in SQL Plus with Username/Pwd it is giving following error.
    "Oracle not available.
    Shared Memory realm does not exsist."
    i have tried with already available forums but its not working.
    Following group are also not available in windows group
    ORA_XEP_DBA
    ORA_XEP_OPER
    SAP_LocalAdmin
    SAP_XEP_LocalAdmin
    SAP_XEP_GlobalLocalAdmin
    i have added in Oracle forum but not helpful so i think windows users can help
    Kindly help.

    > now my oracle is up but not able to login in sap.
    Your system is hosed up.
    > one is : oraclesri102isql*plus service is not getting started.
    That service is not important for a SAP system.
    Chintan,
    it is not supported to make changes to a domain structure after you installed the system (see the given note). That's why your SAP system is not coming up, all filesystem-, registry and user permissions are invalid.
    The only way to resurrect your system is to reinstall it.
    Configure first the operating system (as standalone or in a domain) - and then install the SAP system, not vice versa.
    Markus

  • CR Developer 2008 extremely slow to open... and other problems

    Hi all,
    I'm having problems with Crystal Reports 2008
    When I click on the icon, the CR window opens straight away, but it takes a full 8 minutes before the Start Page loads. During this time, I can't click on anything (theres just an hour glass).
    I've tried uninstalling and reinstalling (twice) and I'm still having the problem.
    Also, once it eventually loads, I can't get to the Page Setup options. It just comes up with an "Out of Memory" error. I've tried removing all the printers as suggested elsewhere on these forums and reinstalled (as mentioned before) but the problem remains..
    Any help would be greatly appreciated.
    Kyle.

    Disabling the 'Check for Updates' option has solved the issue of CR taking a long time to load but the Page Setup 'Out of Memory' error remains.
    I'm not sure I 100% understand what you're suggesting Graham.
    I have 6 printers installed, all work fine with other software. I have tried removing and reinstalling them but the problem remains.
    I've even removed all the printers, reinstalled CR with no printers installed (so it just has 'Fax Printer' and 'Microsoft Office Document Image Writer' in the Printers and Faxes window) and the problem still occurs.
    Any other suggestions?

  • When I download the new itunes (on my pc); going through the dowload process it stop me and a window pops up and it says: (there is a problem with this windows installer package. A program required for this install to complete could not be run.) Help

    when I download the new itunes (on my pc); going through the dowload process it stop me and a window pops up and it says: (there is a problem with this windows installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.)
    I have tried several times to redownload and keep getting the same message. what am I doing wrong...

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • When i double-click the mozilla icon, it doesn't start. In the task manager i noted that the process "firefox.exe" appears and desappear after 5 seconds. The problem remains in mozilla safe-mode, but not in windows safe-mode. Thks!

    Yesterday i installed the firefox 6.0 on my windows 7 computer. When i double-click the mozilla icon, it doesn't start. I opened the task manager and noted that the process "firefox.exe" appears and desappear after 5 seconds. I tried to start mozilla in safe mode but the problem remains. The only way to use mozilla in my computer is restarting the windows in safe-mode. Last thing: i already tried to reinstall the program. Please help me!

    I'm also using Windows 7 on a Lenovo U310 laptop.

  • Bootcamp and windows 8(partition problem)

    I am trying to install windows 8 and until now with no sucess. The instalation by the bootcamp runs smoothly, but when I boot from the USB, start the instalation process on windows and it asks me what partition I want to install the windows, I try to choose the Partition 4: BOOTCAMP and it doesn't work. It says it's a problem because the partition is EFI and for installing windows it can't be or something like that
    And if I don't press the Alt button, when the bootcamp finishes the instalation and reboot the mac, it goes to a black screen where said that I don't have any boot devices connected and to connect one and press a key.

    I believe you are supposed to format the partition labeled BOOTCAMP to NTFS from the installer. It is stated in the BootCamp suport guide.

  • BF2 disk drive and installation problems (Windows XP Home on a MBP)

    So I've taken the leap and installed Windows XP Home on my MacBook Pro. It makes me cringe.
    It was not an easy process. Installing Windows took me about 4 hours. There would be an error, I would have to eject the disk, reboot, and the promised 39 minutes seemed to be 5 times slower than it actually was. By the time I got Windows installed it seemed to be running ok, until yesterday.
    Yesterday, I tried to install Battlefield 2 Deluxe Edition onto Windows. I inserted the first disc (1 of 5) and my MBP spit it right back out. This happened almost 10 times until finally when viewing "My Computer", the MBP accepted the disk. I then started to install. It froze up a couple of times, so I restarted. Same problem: the MBP wouldn't accept the disk. It finally did, I started install and it finally went. And then, about 4 or 5 percent of the way in, it stopped and said somethign along the lines of "BF2 installation failed, please restart install from the beginning". I did, and got the same message.
    Any ideas?
    2.0GHz MacBook Pro   Mac OS X (10.4.6)   1.5 Gb RAM

    Now that I have thought about it, I would have to guess that the problem is my SuperDrive.
    That would attain for the slow Windows Installation and the BF2 problems.
    I also am having problems importing a CD into iTunes. Seems like enough of a problem to make a visit to the Apple store.

  • Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click w

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

  • Thank you all for the responses. By process of elimination, I think the problem is the connection to the express in between the extreme and dock. I bought another express and tried it at dock, no luck, I then replaced new express where the one is between

    I have an airport extreme and express setup. My extreme is in my 2nd floor office with windows facing the water. My dock is about 250 ft away down a very steep hill. I have the express about 100 ft down the hill in an electrical waterproof box attached to a tree as high as I could install. The signal is weak and I'm thinking I might have to buy another express. Any thoughts on the best setup for me. I ultimately want to control speakers(hard wired in) down at the dock with my iphone. I have a receiver coming with airplay built in.
    Thank you all for the responses. By process of elimination, I think the problem is the connection to the express in between the extreme and dock. I bought another express and tried it at dock, no luck, I then replaced new express where the one is between extreme and dock, no better. I unplugged the express between extreme and dock and there was no difference. So I believe I am connecting to the airport express or extreme that is inside the house. Again because when i approach express that is halfway I reconnect. so if you can understand my chaos, I believe the express in between is not really connecting to the extreme inside my house. Yes, No? So I need to know how to know if the express half way down the hill is getting the connection from the the extreme in the house. This is wearing me out!!!!!

    You are asking several different questions. If you need to store your photos, music, and movies on an external volume, you certainly can. Any externally connected hard disk drive will work, connected either directly to your Mac or to your Time Capsule as a shared volume.
    You should not rely upon using that as a backup device though. Although you certainly may use it for both purposes, it is a better idea to have dedicated backup devices for a variety of reasons not limited to redundancy. You would not want to simultaneously lose all your pictures as well as your backup. If they are all on the same device, that could happen. Furthermore, a backup cannot back up the volume on which it is running.
    As for adding an Extreme or Express, using its LAN port for your iMac, and then enable Internet sharing so you can effectively use the iMac as a "hotspot", you can do that too, but I am unclear on what benefit you believe this arrangement would convey for you.
    An Extreme's Guest network is separate from its Main network; that is the reason for having it.

  • Problem with windows and variable in smartform

    hi guru,
    i create smartform for printing tax document and found problem.
    1) 
    i create layout in form like this.
           {Main Window}
                     <<<< Data to print
           <<<< secondary Window
             <<<< secondary Window
    with many data in table, so this form will take 10 page up to print. i found and showed in every page.
    in my solution *i want to display and on last page after {Main Window} Only*. how to resolve this.
    2)  follow to 1st question, can i place position of each window in dynamic?  +like 's position is under {Main Window} 2 cm.+ instead of specific position left margin , upper margin *or should i create other page and place and .*
    3)  i create 2 variables  (sum1 type p , sum2  type p ) for keep sum of  tax in table that show in each page and write it at end of each page. i want to clear data in these 2 variables when system create new page and start to keep sum of value again. i create program line node under {Main Window} after but don't know which code or syntax to write.how to code this?
    regards,
    Kittisak.

    1) On the 'Conditions' tab of your WIndow3 & WIndow4 just click the check box
    'Only After End of Main Window'. It will always be printed at the last after your main window is finished.
    2) And if you don't want your window3 & window4 in a fixed place than instead of new windows do the same thing inside your main window creating a new template or anything as per your requirement and place it after your main table.
    3) For clearing the fields, do it like this, in the program lines write the code below:
    IF G_PAGE NE SFSY-PAGE.  " declare g_page with initial value '0'
        CLEAR field1.   
        CLEAR field2.
        G_PAGE = SFSY-PAGE.   
      ENDIF.
    With luck,
    Pritam.

  • Problem with applet, popup window and focus loss

    Hi all !
    I've got a problem when my applet lose the focus. Let me explain :
    I've got an applet embed in a jsp page. There are several buttons in it that allow the user to open modal windows.
    The problem comes when the user gives the focus to another application whithout closing the modal window first.
    When he tries to come back to the web page owning the applet (using the task bar), then the modal window stays behind it and blocks any action on the applet.
    Does anyone know how to force the modal window to be displayed in front of the applet, even when the user plays with focuses ?
    Thank's in advance.

    thank you for your help, sils.
    I've written that code :
    * Cr�� le 31 ao�t 05
    package com.scor.apricot.web.rpc.ltnp.applet.listener.ldf;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    public class AppletWindowListener extends WindowAdapter {
         private JPanel panel;
         private JDialog dialogWindow;
         public AppletWindowListener(JPanel panel, JDialog dialogWindow) {
              this.panel = panel;
              this.dialogWindow = dialogWindow;
         public void windowActivated(WindowEvent e) {
              if (dialogWindow!=null && dialogWindow.isShowing())
                   dialogWindow.toFront();
    }Is that right ?
    I don't know how to add the listener, where must I put the addWindowListener method ? It seems that this method cannot be used with a JApplet object.

  • I downloaded a film from ITunes in HD and had problems, I upgraded to the latest version of ITunes and have then downloaded the film again in SD on my Windows 7 computer, but I still can't get the film to play, any idea's what to do next?

    I downloaded a film from ITunes in HD and had problems, I upgraded to the latest version of ITunes and have then downloaded the film again in SD on my Windows 7 computer, but I still can't get the film to play, any idea's what to do next?
    I've been working at the same problem for hours now and it's really driving me crazy so any help would be greatly appreciated.

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • Server 2008R2 mapping to shared folders fails users of Windows 8.1 but seems OK on Windos 8.0 and no problems for Windows 7

    Having read what I could from the related questions, the answers still elude me.  This issue apparently is specific to Windows 8.1.
    First, a little background.
    1:  The server is not on a domain,  The system runs Server 2008-R2 standard with all folders shared across a standard "Workgroup" type network.  They would prefer to
    leave this layout intact. 
    2:  The shared folders are nothing but Data files.  There are no active system folders or anything used in an "active" environment.  They are mostly Word doc, excel
    files, pdf, txt, etc.  However, due to the requirements of the software that needs to access these files, they Must
     reside on a mapped network drive letter. Nothing else works due to the way the SQL database program stores the reference points back to the data.
    I have had some success using what amounts to a “simulated” mapping using  WebDAV to access the server.  But access speed is a lot slower ad file size is limited.
    3:  The system has been configured as-is for the past 3 years with Users all on Windows 7 x64 (mixed OS, some Home Premium, some Professional) and the only problems that come up are when
    access is through an ISP that blocks port 445.  This was the original reason for finding a WebDAV/Cloud method just for those Users since they were unable to Map drives to anything on the Office Servers from their Home Internet even when using a VPN.
    When Windows 8.0 became the only version available, I added a few users whose new laptops came with 8.0 from the vendors.  While there were a very few minor problems, for all practical
    purposes, I was still able to provide access to the mapped folders.
    As the Windows 8.1 roll-out progressed, some users were successfully upgraded while others  are still stuck in Windows 8.0.  The issues with this seem to be hardware related and vary
    depending on the Make and model of the laptop.  I have been assured that eventually all of these will be able to advance to 8.1.  But this delay has given me an excellent mixed OS environment for testing.
    On the users who have not yet purchased new equipment and who are still using Windows 7.  There has been no change.  Their drive mapping is stable and they can always connect as usual. 
    Those blocked from lack of port 445 or still blocked.  Systems inside the Office and those with ISP's who allow port 445 can use all mapped drives as normal.
    Users who had Windows 8.0 and who have not yet been able to upgrade to 8.1 also have been unaffected.  Same results as Windows 7. 
    Users who got the Windows 8.1 upgrade as well as those that came factory loaded with Windows 8.1 seem to be a never-ending list of problems.  The ones that came native with 8.1 are worst
    of all.  The list of error codes runs through everything that has to do with “communication with the server”.  As far as I have seen, this appears to be the issue.
    Whether they are in the office on a wired network connection or at home on a Wi-Fi connection, the issues have the same results but the actual error codes may vary slightly.  All of
    them refer back to an inability to communicate with the server.
    Nothing on the server has changed in any way.  Users with Windows 7 continue to have zero problems,  Users with Windows 8.0 seem to be doing fine as well.  Only those with Windows
    8.1 are affected and their problems are dramatic with everything from a total loss of drive mapping to misdirected data when the maps are active.
    I have tried to make the drives automatically remap on reboot. I have tried registry modifications.  I have done everything I can think of to make a difference but the results are the same
    for every system using 8.1.  The mapped drive letters invariably disappear.  Sometimes while the system is in use ( I think I have been able to trace this to times when the system enters Sleep or Hibernate) but always when the system reboots. 
    One detail that might point to somewhere is that the "time to connect" when mapping the drive is so long that I believe some of the original failures were due to not waiting for a
    minimum of 3 or 4 minutes to give time for the Shares to show-up in order to map them.  Once the mapping is successful, the file access speed seems normal.  But invariably, the drive becomes "unmapped" repeatedly each day.
    I know this was a long question but I have tried to provide every possible detail for anyone who has experienced events like this who may already have a solution.  I would even be glad
    to purchase a 3rd party application if that is what it takes to get this to work.  My next planned effort is to try using Server 2013 but I am afraid that might open another can of worms for those who still use Windows 7.
    I have also been told that this is in some way related to the push to "Cloud" support in Windows 8.1 OS but I do not see where this would come in.  I can say that this was the
    one place where things continued to work as before.  People who had Windows 8.1 and who had to use the CLOUD copies of our data are still able to connect to it with no problems.
    Any suggestions appreciated.  Preferably those that would not need extensive changes to the basic network structure.  This "workgroup" consists of less than 25 users and any
    extreme measures would be hard to justify

    Hi,
    I sugget you try to ping server so that we can verify the connectivity.
    Can windows 8.1 access Windows Server 2008R2?
    Also,please check the event viewer to see if some error log appeared when the issue occurred.
    Regards,
    Kelvin Xu
    TechNet Community Support

Maybe you are looking for