source: neercs/trunk/src/python.c @ 4026

Last change on this file since 4026 was 4026, checked in by Jean-Yves Lamoureux, 11 years ago
  • Added src/python.c and ctrl-a-e to open (non-existing yet) single-command executer. Do not document this yet (hint hint)
File size: 1.1 KB
Line 
1/*
2 *  neercs        console-based window manager
3 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
4 *                2008 Jean-Yves Lamoureux <jylam@lnxscene.org>
5 *                All Rights Reserved
6 *
7 *  $Id: help.c 3996 2009-11-22 12:41:45Z jylam $
8 *
9 *  This program is free software. It comes without any warranty, to
10 *  the extent permitted by applicable law. You can redistribute it
11 *  and/or modify it under the terms of the Do What The Fuck You Want
12 *  To Public License, Version 2, as published by Sam Hocevar. See
13 *  http://sam.zoy.org/wtfpl/COPYING for more details.
14 */
15
16#include "config.h"
17
18#ifdef USE_PYTHON
19
20#include <Python.h>
21
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <caca.h>
26#include <caca.h>
27#include <time.h>
28#include <sys/wait.h>
29#include <sys/types.h>
30
31#include "neercs.h"
32
33int python_command_handle_key(struct screen_list *screen_list, unsigned int c)
34{
35    if (c == CACA_KEY_ESCAPE)
36    {
37        screen_list->python_command = 0;
38        screen_list->changed = 1;
39        return 1;
40    }
41    else
42    {
43        return 0;
44    }
45}
46
47void draw_python_command(struct screen_list *screen_list)
48{
49
50}
51#endif
Note: See TracBrowser for help on using the repository browser.