Programming :: Ncurses Screen Prints Garbage

Feb 9, 2011

I actually have two reasons for posting this. One is to see if there's an actual name for characters like this:Hopefully that will show up correctly for you. If not, it's a little box with four numbers in it, one in each corner. I don't know their name or their reason for showing up, so it's hard to look for help.

My main problem, though, is that I wrote a program that prints some output to a console using ncurses as it runs. These characters show up on the console, seemingly at random, and disturb the whole thing. Sometimes I'll also get sets of characters like "[13;" I'm not printing anything bizarre on there, just strings and floating-point numbers.

View 6 Replies


ADVERTISEMENT

Slackware :: 'less' Command - Prints Garbage When Piped

Mar 5, 2010

When i pipe commands through 'less' in console, i get a load of garbage mixed into the results, and no colors either. Mainly the letters 'Esc' printed a couple of times on each line.

I had been messing about with my bash config files but i can't see anything in there to affect this. If I pipe through 'more' there is no problem, only 'less'.

View 11 Replies View Related

Debian :: Name Of Package That Prints Ncurses Style Dialogs During 'aptitude Safe-upgrade'

Mar 1, 2010

I'm running Debian squeeze and my packages are all up to date. I usually do my updates by typing 'aptitude update' and 'aptitude safe-upgrade' at the command line as root.Sometimes when doing regular updates aptitude, or the package that's being updated, shows a ncurses-style dialog box on the screen, usually to have the user 'OK' a change, or to select which version of a configuration file to keep. Recently I've found these dialog boxes to be slightly messed up... in that the spot at the bottom where I would expect the 'OK' button to be is replaced by nonsensical characters.

There seems to be no problem with the way that the program functions, as I can press the tab key and then the return key, or just the return key alone, and the dialog goes away, seemingly doing it's job. But I would like to know what this program is. It's likely been updated recently, but looking through /var/log/aptitude and /var/log/aptitude.1.gz I cannot figure out which one it is. I'd like to file a bug report, or simply be able to follow the progress of someone else's bug. That's all.

View 10 Replies View Related

Server :: Samba Shared Printer Prints Garbage

Jul 28, 2009

Just recently got a few printers connected to the network at my shop and I've managed to get them connected in with samba for the linux clients. Whenever I try to print from one of the clients, the printer will click on and whiz away, but only prints on the first page stuff that looks like this:

Code:
%!PS-Adobe-3.0
%%BoundingBox: 38 24 574 768
%%Title: Enscript Outpu
%%For: User N

It seems to me that the printer isn't processing the postscript data properly (or I'm just not sending it in the right format) but I'm at a loss as to how to go about fixing it.

View 4 Replies View Related

Programming :: Cannot Get Ncurses To Delete Char With

Jan 6, 2010

I've modified a program to show * instead of letters when typing a password. I'm trying to make it so that when pressing backspace a * will be removed.Here's a rough example. The problem is that when trying to do this in the real program,' is not recognized as backspace.

View 6 Replies View Related

Programming :: Ncurses: Filling Window With Background?

Apr 6, 2010

I have some ideas about writing a small game in terminal ( just for fun ) using ncurses library. I want to use some kind of menus (in Midnight Commander's style), but there are some problems with rendering windows, that I don't understand. I create a window with newwin(), assign a color pair to it calling wattron() (for example, I want to fill a window with blue background), and then I call my own function wnd_fill() :

Code: void wnd_fill (WINDOW* wnd)
{
int i;

[code]...

View 9 Replies View Related

Programming :: Ncurses Based Program Had To Be Recompiled On A Different PC Same OS

Oct 18, 2010

On an Ubuntu Server I am running, I wrote a small Ncurses program in GCC. It worked just fine.

Then, I copied the executable over to my Ubuntu 10.10 desktop edition with sftp. No matter what I did, it kept giving the error:

error opening terminal: xterm.

I had copied other non-curses programs and they all ran just fine.

Finally, I copied over the source, recompiled with GCC and voila, the executable now runs fine.

View 6 Replies View Related

Programming :: Garbage Collection In C?

Jan 7, 2010

I was wondering if it is possible to have a garbage collector in C, and would it be too difficult to create?

View 1 Replies View Related

Ubuntu :: Ati X1270 (RS690) Still Garbage Screen?

Apr 30, 2010

With 10.04 final i still have the issue with a very distorted screen. Works with RadeonHD driver but performance is utterly crap so no good solution. Also when adding new panels they become invisible and only a logout and login makes them visible around the border. Errors somehow related? How do i file a bug report?

View 1 Replies View Related

Programming :: Differences Between Ncurses Library And Termios Struct W.r.t Keyboard Reading

May 3, 2010

I want to read a pressed key or a combination of pressed keys from the keyboard and perform some action afterwords.

e.g.

Ctrl-Alt-F1

Out of ncurses lib. and the termios struct which can be used best for the above purpose and why ?I tried to search on Google, the differences between these two but couldn't get much !

View 6 Replies View Related

Debian Hardware :: Mc4695MF - Test Page Prints Fine But App Prints Blank Pages

May 19, 2014

I'm struggling on installing a KONICA-MINOLTA printer magicolor 4695MF printing properly with Linux Mint Debian Edition (up to date). The test page works fine...

KONICA-MINOLTA delivers 2 PPDs: one for standard printing and one for OpenOffice printing (available on the KONICA-MINOLTA support site).

Leaving a side the one for OpenOffice which is poor in using the capabilities of the printer, I concentrate only on the global one (M4695PX.ppd).

It's much more difficult for other applications, starting with EVINCE: some PDF files are printed properly (i.e. those generated in OpenOffice by the CUPS PDF printer), others come out as one only blank page, regardless to the original length of the document.

So documents received from 3rd party may be "printable" or not. And trust Murphy, the most critical aren't printed...

Attached, the troubleshooting file generated by [system-config-printer] => [URL] ...

View 0 Replies View Related

Programming :: Eliminate Garbage From Buffer C++

Mar 4, 2010

Code:
char retBuffer[100];
recv(sock , retBuffer ,sizeof(retBuffer) , 0);

if i send a string smaller then my buffer size retBuffer always have garbage of the end of it....what can i do to eliminate tis problem ?

View 2 Replies View Related

Programming :: Implementing A Garbage Collector In C++?

Aug 27, 2009

I'm interested in writing a generational garbage collector in C++. This is for a Python-like programming language project. I have used Boehm's garbage collector before, but I'm worried that it will have noticeable pause times (unacceptable for interactive programs). Since I can't really find any other C++ established GCs out there, I have been thinking of simply writing my own.

However, there are two essential ingredients I need for this:

- Some kind of write barrier mechanism that will notify my collector when something is written to a part of the heap

- A way for me to know the addresses and sizes of the stack, heap and global storage (the root sets)

how to implement write barriers (and how to get the stack, heap and global storage information) on the Linux platform? As an alternative, if you know of C++ GCs other than Boehm, I would also be interested.

View 14 Replies View Related

Programming :: Garbage After Exactly Eight Properly Printed Characters?

Jul 21, 2010

The code below prints garbage if I use puts() but it is fine if I use printf() instead (see sample of output at the bottom of this post). The odd thing is that the mess always starts after exactly eight properly printed characters. That sort of regularity can't be a coincidence, can it? It almost looks like an encoding issue (I'm using UTF-8) but if it really is, then I don't understand why the printf() is unaffected.

Code:
#include <stdio.h>
#include <string.h>
const char *nChars (const char *, int);
int main (int argc, char * argv[]){
char * name ="Count Dracula++";
int len = strlen(name);
if (argv[1] == 0) argv[1]="printf";
printf("--->%d characters", len); .....

View 9 Replies View Related

Ubuntu :: Boot Screen Black With Lots Of Pixelated Garbage?

Aug 16, 2010

I tried to install a a custom splash screen using this guide [URL] and got as far changing the settings with Startup Manager. I found out that I didn't have an 'Appearance' tab so I reverted all the changes I've done in the 'Boot Options' tab. I then closed Startup Manager and rebooted back into linux. Now instead of seeing the purple Unbuntu screen, I see a black screen with a lot of pixelated garbage. Why I don't have the necessary tabs in Startup Manager to install a theme? I'm using a Macbook Pro 5,5.

View 4 Replies View Related

CentOS 5 :: Anacond - Hangs At Blue Screen Of Garbage / Sort It?

Sep 12, 2009

I'm attempting to install CentOS 5.2 x86_64, on an HP Pavilion/Intel Core Duo.

The DVD boots, anaconda starts, displays blue screen with "Loading usb-storage driver", and then hangs at a blue screen of garbage.

View 6 Replies View Related

Programming :: Bash Unset Array Loops GARBAGE?

Jun 27, 2011

Code:

#loop until there are no more files
while [ ${#files[@]} -gt 0 ]; do
for num in `seq 1 ${#files[@]}`; do
wurd=`tail -4 ${files[$num-1]}`

[code].....

Everything works.. but when it has to unset.. it breaks.. it doesnt give an error though.. it just jams the program.

View 7 Replies View Related

Programming :: Make Objects Created With New Garbage-collected

Apr 30, 2011

I read this guide: [URL].. but I still don't understand how to make objects created with new garbage-collected. Could someone explain how or find a link to an explanation?

View 13 Replies View Related

Programming :: Programming In C Using Ncurses?

May 2, 2010

I have a question, I was using ncurses in my program and made a user interface, that uses the menus. It is fine, but I wanted to execute another program when one item is selected. And after its exiting, I come back to the main one. I think that it can be done via window, but I wanted to separate them. Can you suggest me what to do? As I do it in Ubuntu Linux using fork & execl, that seems everything is mixed with the shell & if I don't do the closing of the objects, the keyboard & terminal attributes are the same as the one for the main, I used the system function, but not very different. I used atexit and when I use (probably) system (stdlib) function it calls the function registered with atexit. Please tell me the solution..

View 1 Replies View Related

Ubuntu :: Won't Load From USB / Black Screen And Prints Out An Error Message?

Jan 19, 2010

I decided I wanted to give ubuntu a go by installing it on a 4GB USB drive.

I installed it using this guide url.

I booted up and it hung on the 'mounting file system', I left it for ages and eventually it goes to a black screen and prints out an error message, I can't type anything on my keyboard.

View 3 Replies View Related

OpenSUSE :: Sort Software BY-SIZE In Ncurses YAST?

May 3, 2010

I'm running headless server, and need to sort all packages in YAST by size. I can't see the option in YaST anywhere.

View 5 Replies View Related

Software :: Where To Get Ncurses Developemnt Libraries For Debian Squeeze?

Jun 6, 2010

Where can I get ncurses developemnt libraries for Debian Squeeze. I am using the Sheeva Plug hardware platform.

Doing a make on source code that needs the ncurses dev libraries.

View 2 Replies View Related

Slackware :: Stfl.SlackBuild Fails While Looking For Ncursesw/ncurses.h - 11.0

Sep 23, 2010

My system is mostly slack 11.0 (Absolute Linux 11.0 actually) I have been trying to build stfl from SlackBuilds.org. I think I'm missing some ncurses wide stuff but don't know how to compile for ncursesw.

I have stock ncurses5.5 on my system.

Compiler output is:

I have /usr/include/ncurses on my system but not /usr/include/ncursesw/ncurses.h

My goal is to compile newsbeuter but this dependency is in the way.

View 4 Replies View Related

Fedora :: Make Menuconfig Doesn't Find Ncurses Headers?

Jan 18, 2011

Make menuconfig doesn't find ncurses headers on my system, howerver ncurses-devel package is installed. I get the following error message:

Code:
make menuconfig
*** Unable to find the ncurses libraries or the

[code]...

View 3 Replies View Related

Slackware :: Tell If Have 'garbage' In Root Partition?

Mar 7, 2011

My root partition /dev/sda1 is 24.41 GiB with 10.48 GiB used. How can I tell if I have inadvertently placed a bunch of garbage on this partition? Also, should I, and I use the term loosely, 'move' certain directories to my home partition /dev/sda3? (118.77 GiB with 3.14 GiB used)

Right now I believe that, rightly or wrongly, if I screw up my system, all I need to do is install my Clonezilla image back to /dev/sda1 and I will have a 'mostly' working system. If I 'move' anything out of /dev/sda1 to /dev/sda3, will this hold true? Or am I out to lunch on this assumption anyway?

View 14 Replies View Related

OpenSUSE :: Garbage In Yast2 In Text Mode?

Mar 5, 2011

if I open Yast2 via SSH I see the garbage (code page related issue; similar to this). If I set some other than UTF-8 in PuTTY (KOI8-U, iso-8859 etc) Yast looks good, but then the same problem appears with Midnight Commander. How can I have Yast to use 'right' UTF-8 instead of any legacy code pages? Or how better deal with the situation?

View 2 Replies View Related

General :: Running Git-svn With Cron Results In Garbage

Mar 25, 2010

I've setup a git-svn repo with cron to fetch from the svn repo daily. I have a script to do the fetching, and this is what is invoked by cron. Everything is fine with the repo, and the script works fine when executed manually. However, when it runs under cron, empty files get dropped into the .git directory. The files have names that look like they are some base64 output, e.g. juTrvjP6m8 and kcKf3hu3b4. Two of these files show up for every cron run. I thought these might be commit hashes, but they're not, git-show says it's an unknown revision. I set-up the repo as follows:

[code]...

The last line pushes the repo to a separate (bare) public repo from which others can clone. I'm piping the output from the cron job to a file, which looks like this:

[code]...

The line "fatal: unable to run 'git-svn'" is alarming, but the fetch seems to go ahead anyway. Where are these empty garbage files coming from, and how to stop them? Am I in for bigger problems in the future?

View 1 Replies View Related

Ubuntu Installation :: CD Drive Is Garbage And Won't Run The Installer?

Jan 6, 2010

I am trying to get a new box up. It has XP on one HDD. There is a second HDD, upon which I want to install Ubuntu and dual boot. My problem is that my CD drive is garbage and won't run the installer. Nor do I have any flash drives. Is it possible to install directly from Windows but not "within Windows" persay? If so, how is this done? (I do have Daemon Tools.)

View 2 Replies View Related

Ubuntu :: Some Japanese Text Comes Out As Garbage Characters

Jan 23, 2010

I have installed scim and anthy. Most Japanese characters display, but some websites and files show garbage characters. Is there any way to resolve this?

View 1 Replies View Related

Ubuntu :: Some Japanese Text Comes Out As Garbage Characters?

Nov 1, 2010

I have installed scim and anthy. Most Japanese characters display, but some websites and files show garbage characters.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved