Sponsored Content
Top Forums UNIX for Advanced & Expert Users NCurses not handling hindi half character correctly Post 303017314 by syed.waris on Monday 14th of May 2018 12:48:05 AM
Old 05-14-2018
NCurses not handling hindi half character correctly

Hello,


I am working on Ubuntu's Virtual terminal. On the virtual terminal, I am typing in hindi language. Most of the characters are being correctly typed, but in case of typing of a half character, problem is occuring.


A hindi character is 'converted' into half by typing ' ् ' after the character.


For example (if typed in following sequence):
'क' 'स' ' ्' 'ट' : This will transform the second character into half and the complete representation will be कस्ट


After typing the above 4 characters I want them to be present (echoed) on the terminal. But instead, I get (in terms of unicode):

915 938 91f


Expected (in terms of unicode):

915 938 94d 91f


Configuration:
1. /etc/defaultconsole-setup. This file contains FONT='lat9-16.psf.gz /home/syed/Desktop/devanagari16.psf'. And the virtual terminal is configured by running sudo setupcon -v
2. Virtual terminal converted to hindi keyboard using :
sudo dpkg-reconfigure keyboard-configuration
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Null Character Handling

Hi All, I have a problem with Null values while reading line by line from a text file. I wrote a shell script to read set of file names from a text file line by line, and zipping the each individual file and copying those zip files into some separate directory, and removing the original file... (3 Replies)
Discussion started by: npk2210
3 Replies

2. Shell Programming and Scripting

Script sortof half-working?

I have directories full of files that contain dates and times in their names in the format YYYYMMDDhhmm. So like, one of the files is named 199407271609 with no file extension. I have this script searches a given directory and changes all creation dates of the files to match the date in their... (4 Replies)
Discussion started by: hot_pants
4 Replies

3. UNIX for Dummies Questions & Answers

Internet half-broken

I have an odd problem with my internet connection. I think it's software not hardware, but I'm not even certain of that. My best guess is that it relates to my recent installation of KVpnc. I can't connect to most websites: no ping, nothing in the browser. But other websites I can connect to... (7 Replies)
Discussion started by: CRGreathouse
7 Replies

4. Programming

Help with ncurses

Help with ncurses Hi, I need some help with ncurses.I'm supposed to write a program in C to display date and time and also to input the username and password using C.I chose ncurses for my task and here I am. Code: #include <stdio.h> #include <termios.h> #include... (1 Reply)
Discussion started by: rakesh_01
1 Replies

5. Solaris

Japanese and Hindi test want to insert on file on Solaris 10

Hello All, I have a solaris 10 sparc machine . I have installed all the locale . hi_IN.UTF-8. and similarly for japanese. But when i am trying to insert Hindi test in a file using vi . Every thing is getting turned in dots . Can any one help in this .I have configured the LANG and... (14 Replies)
Discussion started by: Arif29march
14 Replies

6. Shell Programming and Scripting

Handling Invisible character in a file

Hi Experts, When i am trying to read a csv file ,i could find some invisible character in it. I tried to see those characters by following code od -c filename It is displaying 240 for those invisible character. can some one elobrate on this and provide solution remove those character from... (4 Replies)
Discussion started by: cnraja
4 Replies

7. Programming

[C] Is there a way to clean half screen?

Hi, I wrote a program for Windows environment. It shows a menu to choice some operations to do. Once an operation is done, it cleans the screen with a system("cls") call, and the menu is shown again. I'd like to just clean half screen, so the program doesn't need to call again the print menu... (5 Replies)
Discussion started by: Luke Bonham
5 Replies

8. UNIX for Dummies Questions & Answers

[SOLVED] Only half my script runs

Hello out there, I got this script that runs partly fine by my crontab. Problem is it gets to the sleep 300(which should be 5 minutes right?) part and never runs the rest of the scripts past that. All individual scripts run just fine. My var/mail file only shows it up to the " echo "Loader Stop... (3 Replies)
Discussion started by: vsekvsek
3 Replies
PTY(4)							   BSD Kernel Interfaces Manual 						    PTY(4)

NAME
pty -- pseudo terminal driver SYNOPSIS
pseudo-device pty [count] DESCRIPTION
The pty driver provides support for a device-pair termed a pseudo terminal. A pseudo terminal is a pair of character devices, a master device and a slave device. The slave device provides to a process an interface identical to that described in tty(4). However, whereas all other devices which provide the interface described in tty(4) have a hardware device of some sort behind them, the slave device has, instead, another process manipulating it through the master half of the pseudo terminal. That is, anything written on the master device is given to the slave device as input and anything written on the slave device is presented as input on the master device. In configuring, if an optional count is given in the specification, that number of pseudo terminal pairs are configured; the default count is 32. The following ioctl(2) calls apply only to pseudo terminals: TIOCSTOP Stops output to a terminal (e.g. like typing '^S'). Takes no parameter. TIOCSTART Restarts output (stopped by TIOCSTOP or by typing '^S'). Takes no parameter. TIOCPKT Enable/disable packet mode. Packet mode is enabled by specifying (by reference) a nonzero parameter and disabled by specifying (by reference) a zero parameter. When applied to the master side of a pseudo terminal, each subsequent read(2) from the terminal will return data written on the slave part of the pseudo terminal preceded by a zero byte (symbolically defined as TIOCPKT_DATA), or a single byte reflecting control status information. In the latter case, the byte is an inclusive-or of zero or more of the bits: TIOCPKT_FLUSHREAD whenever the read queue for the terminal is flushed. TIOCPKT_FLUSHWRITE whenever the write queue for the terminal is flushed. TIOCPKT_STOP whenever output to the terminal is stopped a la '^S'. TIOCPKT_START whenever output to the terminal is restarted. TIOCPKT_DOSTOP whenever t_stopc is '^S' and t_startc is '^Q'. TIOCPKT_NOSTOP whenever the start and stop characters are not '^S/^Q'. While this mode is in use, the presence of control status information to be read from the master side may be detected by a select(2) for exceptional conditions. This mode is used by rlogin(1) and rlogind(8) to implement a remote-echoed, locally '^S/^Q' flow-controlled remote login with proper back-flushing of output; it can be used by other similar programs. TIOCUCNTL Enable/disable a mode that allows a small number of simple user ioctl(2) commands to be passed through the pseudo-terminal, using a protocol similar to that of TIOCPKT. The TIOCUCNTL and TIOCPKT modes are mutually exclusive. This mode is enabled from the master side of a pseudo terminal by specifying (by reference) a nonzero parameter and disabled by specifying (by reference) a zero parameter. Each subsequent read(2) from the master side will return data written on the slave part of the pseudo terminal preceded by a zero byte, or a single byte reflecting a user control operation on the slave side. A user control command consists of a special ioctl(2) operation with no data; the command is given as UIOCCMD(n), where n is a number in the range 1-255. The operation value n will be received as a single byte on the next read(2) from the master side. The ioctl(2) UIOCCMD(0) is a no-op that may be used to probe for the existence of this facility. As with TIOCPKT mode, command operations may be detected with a select(2) for exceptional conditions. TIOCREMOTE A mode for the master half of a pseudo terminal, independent of TIOCPKT. This mode causes input to the pseudo terminal to be flow controlled and not input edited (regardless of the terminal mode). Each write to the control terminal produces a record boundary for the process reading the terminal. In normal usage, a write of data is like the data typed as a line on the termi- nal; a write of 0 bytes is like typing an end-of-file character. TIOCREMOTE can be used when doing remote line editing in a win- dow manager, or whenever flow controlled input is required. FILES
/dev/pty[p-sP-S][a-z0-9] master pseudo terminals /dev/tty[p-sP-S][a-z0-9] slave pseudo terminals DIAGNOSTICS
None. HISTORY
The pty driver appeared in 4.2BSD. 4.2 Berkeley Distribution November 30, 1993 4.2 Berkeley Distribution
All times are GMT -4. The time now is 12:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy