~ubuntu-branches/debian/squeeze/putty/squeeze

« back to all changes in this revision

Viewing changes to mac/macterm.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-05-28 09:28:32 UTC
  • mfrom: (4.1.4 hardy)
  • Revision ID: james.westby@ubuntu.com-20080528092832-88epkb3d4s1zsw61
Tags: 0.60-3
* Move putty to Applications/Network/Communication menu sub-section.
* Use dh_desktop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: macterm.c 5424 2005-03-01 21:38:06Z owen $ */
 
1
/* $Id: macterm.c 6555 2006-02-13 22:18:17Z owen $ */
2
2
/*
3
3
 * Copyright (c) 1999 Simon Tatham
4
4
 * Copyright (c) 1999, 2002 Ben Harris
595
595
    lastwhen = TickCount();
596
596
}
597
597
 
598
 
void write_clip(void *cookie, wchar_t *data, int len, int must_deselect)
 
598
void write_clip(void *cookie, wchar_t *data, int *attr, int len, int must_deselect)
599
599
{
600
600
#if !TARGET_API_MAC_CARBON
601
601
    Session *s = cookie;
1488
1488
 * may want to perform additional actions on any kind of bell (for
1489
1489
 * example, taskbar flashing in Windows).
1490
1490
 */
1491
 
void beep(void *frontend, int mode)
 
1491
void do_beep(void *frontend, int mode)
1492
1492
{
1493
1493
    if (mode != BELL_VISUAL)
1494
1494
        SysBeep(30);
1845
1845
{
1846
1846
}
1847
1847
 
 
1848
char *get_ttymode(void *frontend, const char *mode)
 
1849
{
 
1850
    Session *s = frontend;
 
1851
    return term_get_ttymode(s->term, mode);
 
1852
}
 
1853
 
1848
1854
/*
1849
1855
 * Mac PuTTY doesn't support printing yet.
1850
1856
 */
1892
1898
    return term_data(s->term, is_stderr, data, len);
1893
1899
}
1894
1900
 
 
1901
int get_userpass_input(prompts_t *p, unsigned char *in, int inlen)
 
1902
{
 
1903
    Session *s = p->frontend;
 
1904
    return term_get_userpass_input(s->term, p, in, inlen);
 
1905
}
 
1906
 
1895
1907
/*
1896
1908
 * Emacs magic:
1897
1909
 * Local Variables: